Project

General

Profile

Defect #349

Pie Chart: legend is not drawn if a color is not specified

Added by Nicola Gervasi almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
charting
Target version:
-
Start date:
07/29/2011
Due date:
% Done:

100%

Estimated time:
Browser (if web client):

Description

Sometimes when drawing a chart you don't want to select colors but let the tool generates colors for you (very nice feature when it uses gradients), but it doesn't work.

This works fine:

chartDef.slices = [ {percent: 29.5, color: '#FF0000', label: 'Thirty', legend: 'Thirty L'}, {percent: 25, color: '#00FF00', label: 'Twenty-Five', legend: 'Twenty-Five L'}
]

this does not (the legend is not drawn):

chartDef.slices = [ {percent: 29.5, label: 'Thirty', legend: 'Thirty L'}, {percent: 25, label: 'Twenty-Five', legend: 'Twenty-Five L'}
]

History

#1

Updated by Patrick Talbot almost 13 years ago

  • Status changed from New to In Progress
#2

Updated by Patrick Talbot almost 13 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

Fixed with v1.4.14

Also available in: Atom PDF