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
920
How to: Display text in middle of doughnout chart
posted

Hi 

I have a requirement to display a total in the center of a doughnut chart.  I'm using Ultrachart 16.2.  I've uploaded an example.

Any help greatly appreciated.

Regards

James O'Doherty

Solutions and Database Architect

Parents
  • 21795
    Verified Answer
    Offline posted

    Hello James,

    If I understand you correctly, you are using UltraChart and your ChartType is set to DoughnutChart. What you need is to show some custom text in the middle of your chart. There is no direct way to add such label to UltraChart. What you can do is handle FillSceneGraph event of the chart and add a Text primitive. Attached is a small sample project demonstrating this approach.

    Please check my sample and let me know if this is what you are looking for, or if I am missing something.

    ULtraChartDoughnutChartSpecialLabel.zip
Reply Children
No Data