Bar Series Labels

4 posts, 0 answers
  1. Donald
    Donald avatar
    2 posts
    Member since:
    Sep 2014

    Posted 19 Mar 2015 Link to this post

    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?
  2. Nasko
    Admin
    Nasko avatar
    1049 posts

    Posted 23 Mar 2015 Link to this post

    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.

     
  3. Donald
    Donald avatar
    2 posts
    Member since:
    Sep 2014

    Posted 24 Mar 2015 Link to this post

    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.
  4. Nasko
    Admin
    Nasko avatar
    1049 posts

    Posted 26 Mar 2015 Link to this post

    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.

     
Back to Top