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
1415
How do I make igPieChart display values?
posted

I would like my igPieChart to display the values either in the pie chart slices, or outside the chart with arrows pointing to the slice.

Alternatively if this is not possible, it would help to display the values in the legend.

Please provide me an example of doing this.

I am currently using the tooltipTemplate property to display a tooltip with the values as follows:

tooltipTemplate: "<div class='ui-chart-tooltip'><div class='bold'>${item.Label}</div><div>Count: <label class='bold'>${item.Total}</label></div></div>"

 

Parents
No Data
Reply
  • 1415
    Verified Answer
    Offline posted

    Nevermind got it working with this:

    formatLabel: function (obj) { return obj.itemLabel + ": " + obj.item.Total; },

    labelsPosition: "bestFit"

Children