This is a migrated thread and some comments may be shown as answers.

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

1 Answer 67 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Ram Prasad
Top achievements
Rank 1
Ram Prasad asked on 15 May 2017, 10:42 AM

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

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 17 May 2017, 06:17 AM
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
Tags
Chart
Asked by
Ram Prasad
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or