How to achieve data labels on BarSeries when Vertical Axis is Categorical Axis?

2 posts, 0 answers
  1. Ram Prasad
    Ram Prasad avatar
    6 posts
    Member since:
    Mar 2017

    Posted 15 May Link to this post

    Hello,

    I am using RadCartesianChart BarSeries. In UWP I am able to show datalabels on bars by ShowLabels property when Vertical Axis is Numerical. But when I make Categorical  Axis as Vertical Axis and Numerical Axis as Horizontal Axis , data labels don't appear. I am able to reproduce this issue with Telerik Samples.

    It works fine on Android or iOS. can any one suggest a solution?

    Thanks,

    Ram

  2. Nikolay
    Admin
    Nikolay avatar
    395 posts

    Posted 17 May Link to this post

    Hi Ram,

    We have been unable to reproduce this issue on our side, could you please provide some more details on your specific scenario. You mentioned you have been able to reproduce it in the sample application, could you tell us which example you have used and what the code looks like. 

    We have tested this scenario using the SDK samples application from the installation from here : 
    <install_folder>\ SampleApps\SDKExamples.UWP.

    The specific example we have used is Chart -> UnboundMode and this is the code : 

    <chart:RadCartesianChart >
                <chart:RadCartesianChart.HorizontalAxis>
                    <chart:LinearAxis/>
                </chart:RadCartesianChart.HorizontalAxis>
                <chart:RadCartesianChart.VerticalAxis>
                    <chart:CategoricalAxis/>
                </chart:RadCartesianChart.VerticalAxis>
                <chart:BarSeries ShowLabels="True">
                    <chart:BarSeries.DataPoints>
                        <charting:CategoricalDataPoint Category="Apples" Value="7"/>
                        <charting:CategoricalDataPoint Category="Oranges" Value="13" />
                        <charting:CategoricalDataPoint Category="Pears" Value="9"/>
                    </chart:BarSeries.DataPoints>
                </chart:BarSeries>
            </chart:RadCartesianChart>

    Using this we're able to see the labels of the data points. In case the issue persists on your side, it would be very helpful if you could help us reproduce your specific scenario.

    Regards,
    Nikolay
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top