Data labels in sunburst

Posted by: dpandey on 6 November 2025, 6:14 pm EST

  • Posted 6 November 2025, 6:14 pm EST

    As in spread we use showValue (to show/hide date labels ) for charts

    And these properties to configure the data labels on chart-

    var dataLabels = chart.dataLabels();

    dataLabels.showValue = true;

    dataLabels.showSeriesName = false;

    dataLabels.showCategoryName = false;

    dataLabels.color = “#000000”;

    var dataLabelPosition = GC.Spread.Sheets.Charts.DataLabelPosition;

    Just want to confirm,

    is showValue used for the sunburst chart too? or is there any other property for sunburst? (to show/hide the data labels )

  • Posted 7 November 2025, 2:04 am EST

    Hi,

    Yes, the showValue property is also applicable to Sunburst charts for controlling the visibility of data labels (values). There isn’t a separate property specific to Sunburst charts for showing or hiding labels.

    You can use the same approach as with other chart types:

    var labels = chart.dataLabels();
    labels.showValue = !labels.showValue;
    labels.showCategoryName = !labels.showCategoryName;
    chart.dataLabels(labels);

    Refer to the attached sample: Sample.zip for reference — clicking the Toggle Data Labels button will toggle both showValue and showCategoryName.

    Regards,

    Priyam

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels