Vertical labels on bar series

4 posts, 0 answers
  1. Ryan
    Ryan avatar
    7 posts
    Member since:
    Jan 2014

    Posted 08 Apr 2014 Link to this post

    Will there be support in the future to allow vertically oriented labels on bar charts?  Or does that feature currently exist and I'm missing it?

    (see attached)

    Thank you
  2. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 10 Apr 2014 Link to this post

    Hello Ryan,

    Thank you for writing.

    In the described case the angle property is not used to change the text orientation in the labels. This property allows you to move the labels around the data point when the line series are used for example.

    In this case you can use the built-in smart labels feature which is very useful when you have such labels. More information about this is available in the following article: Smart labels | UI for WinForms Documentation.

    Please let me know if there is something else I can help you with. 
     
    Regards,
    Dimitar
    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. UI for WinForms is Visual Studio 2017 Ready
  4. Ryan
    Ryan avatar
    7 posts
    Member since:
    Jan 2014

    Posted 10 Apr 2014 in reply to Dimitar Link to this post

    Hi Dimitar.  Thank you for your response.

    I added the below code:
    barDealsByStatus.ShowSmartLabels = true;

    I tried both before setting the chart datasource and after.  Neither have any affect on the display of the labels.

    Here's how I'm setting the points:
                                    Telerik.WinControls.UI.BarSeries b = new Telerik.WinControls.UI.BarSeries();
                                    b.ShowLabels = true;
                                    CategoricalDataPoint cdp = new CategoricalDataPoint((double)x.DealCount, x.Status);
                                    cdp.Label = "Cal" + " (" + x.DealCount + ")";
                                    b.DataPoints.Add(cdp);
                                    barDealsByStatus.Series.Add(b);

    Is something I'm doing by dynamically creating the series & datapoints in code causing the smart labels to not function?

    Thank you.



  5. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 15 Apr 2014 Link to this post

    Hello Ryan,

    Thank you for writing back.

    The provide code looks OK and without the actual project I cannot tell why this functionality does not work properly. This is why I have created and attached a small sample project. Could you please check it and let me know how it differs from your real setup? 

    I am looking forward to your reply.
     
    Regards,
    Dimitar
    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.

     
Back to Top