For chart types "pie" and "donut", the legend should include the category color:

In charts_highcharts_drilldown.module we should change line 39 from:
if (isset($definition['legend']) && $definition['legend']['enabled'] == TRUE) {
to:
if (isset($definition['legend']) && $definition['legend']['enabled'] == TRUE && !in_array($definition["chart"]["type"], ['donut','pie'])) {

Comments

vistree created an issue. See original summary.

diaodiallo’s picture

Status: Active » Fixed
StatusFileSize
new799 bytes

Added the patch.

  • 7dd2949b committed on 1.0.x
    Issue #3381847 by vistree, diaodiallo: Legend should include colors for...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.