Skip to main content
Nintex Community Menu Bar
Question

Show count of records on graph data label?

  • Jul 10, 2024 4:18 PM UTC
  • 2 replies
  • 32 views
  • Translate All

Forum|alt.badge.img+4

I attempted to search for this but could not find much about this.

Below I attached a screenshot of a chart I made, but a request has been made to show the number of records that represent each piece of the pie, is this possible to show on the data label itself (ex. “Corporate (8)”, “Franchise (30)”)?

This topic has been closed for replies.

2 replies

Forum|alt.badge.img+7
  • Jul 10, 2024 5:31 PM UTC

Very possible (see screenshot).
You will have to add a Javascript snippet, and add that snippet to the chart in the advanced section.

var chartObj = arguments[0], $ = skuid&#46;$; $&#46;extend(true, chartObj&#46;plotOptions,{ pie: { dataLabels: { format: "{point&#46;name} - {point&#46;y:,&#46;0f} ", enabled: true, color: (Highcharts&#46;theme &amp;&amp; Highcharts&#46;theme&#46;dataLabelsColor) || 'black', } } });<br />
Translate

Forum|alt.badge.img+4
  • Author
  • Jul 10, 2024 5:31 PM UTC

This worked perfectly!  Thank you!

Translate