Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When viewing the pie chart example using the Highcharts library, the chart is broken.
This appears to be that the library does not like to have multiple series when displaying a pie chart.
To resolve this, the number of series in the example should be limited.
Comment | File | Size | Author |
---|---|---|---|
#2 | Screen Shot 2018-02-12 at 11.10.40.png | 46.87 KB | John Cook |
#2 | 2944095-highcharts_piechart_example-2.patch | 1.6 KB | John Cook |
Screen Shot 2018-02-12 at 11.06.00.png | 27.61 KB | John Cook |
Comments
Comment #2
John Cook CreditAttribution: John Cook at Creode commentedI created a patch that limits the number of series when a pie chart is used.
A
switch
statement was used so it would be easier to limit other graph types if necessary.After applying the patch, the graph displays properly:
Comment #3
John Cook CreditAttribution: John Cook at Creode commentedComment #4
andileco CreditAttribution: andileco at JSI Research & Training Institute, Inc. (JSI) commentedThanks for the catch. This helped me realize that "Donut" wasn't being included on that default settings configuration page.
Comment #6
andileco CreditAttribution: andileco at JSI Research & Training Institute, Inc. (JSI) commented