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

Bar Series Labels

3 Answers 227 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Donald
Top achievements
Rank 1
Donald asked on 19 Mar 2015, 12:57 PM
I have stacked bar graph that has a category group based on a description and the series group based on a percentage. What I want to achieve is the following:

I want the description left-justified on each individual bar and the percentage right-justified on the that same bar. Is this possible? Could you please give me an example of how one would we doing this?

3 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 23 Mar 2015, 03:18 PM
Hello Donald,

Information about each data point can be displayed using the DataPointLabel expression. Note that the DataPointLabelStyle.Visible should be set to True in order to show the data point labels.

Please find attached a sample report using the AdventureWorks sample database demonstrating the approach.

Regards,
Nasko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Donald
Top achievements
Rank 1
answered on 24 Mar 2015, 07:19 AM
Ok I had a look at your example. I have noticed that you have added some padding between the 2 fields on the DataPointLabel. This is not quite what I was looking for. I was hoping that there was some sort of way to display the Y-axis' label inside the start of the bar and with the DataPointLabel displaying at the end of the bar.

The aim is to not use a legend, as the bars are required to be 1 colour with each bar uniquely identified by it's description inside the bar itself.
0
Nasko
Telerik team
answered on 26 Mar 2015, 02:04 PM
Hello Donald,

I used white spaces for padding as a workaround, since there is no option to add an additional data point label and align it horizontally or vertically.

Regards,
Nasko
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
General Discussions
Asked by
Donald
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Donald
Top achievements
Rank 1
Share this question
or