Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
220
BarLabels insight the Bar
posted

Hello,

i created a chart text property to the ChartTextCollection of my BarChart.

Actually the Label is just above the bar. Is it possible to show the Label insight a Column in vertical adjustment ?

Parents
No Data
Reply
  • 53790
    posted

    Hello fpollmann,

    There are different approaches to solve this task. One possible approach could be if you are using HorizontalAlign property. If you think that this approach is not suitable into your scenario, you could use OffSet method of your text primitives.  For example you could handle FillSceneGraph event and include the code:

    if (pr.GetType() == typeof(Text) && pr.Row == -1 && pr.Column == -1 && pr.Path == null)

    {

      ((Text)pr).bounds.Offset(-30, 0);

    }

    Please take a look at the attached sample for more details and let me know if you have any questions.

    Regards


     

Children