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.
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.
I thought of another way to do it... Annotations could work as well.
Here's the sample that demonstrates the first approach I mentioned. I'm sure it could be cleaned up and pruned but the idea is there to get you started. You might want to investigate the annotations approach as well to see what suits your needs best.
Thanks ! that's exactly what I needed.