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
25
Display custom text in Column Chart
posted

I have this requirement in which I have some Actual vs Planned usage being displayed. But I need the difference between the two values to be display above the data in the chart. Attached a screenshot of my requirement.

Please let me know how this can be achieved. The in-built chart functions/code do not accomodate this.

Parents
No Data
Reply
  • 5118
    posted

    Hi.  You can handle the charts FillSceneGraph event and add a Text Primitive to the SceneGraph at the location in the chart you want and with the content you desire.  I'll see if I can toss together an example but that's the basic idea.  Column Chart is going to use Box Primitives for the bars but be careful not to change Box Primitives that are not the columns themselves... such as the Border of the chart since it is also a Box Primitive as demonstrated by the Path property of the Primitive.

Children