Skip to content

DataChart legend size should not be tied to chart series properties #6119

@ecircenis

Description

@ecircenis

When creating a DataChart using area or dashed line, it is common to use hair (area) or xsmall (line) thickness. But, this affects the display of the legend. Hair-width does not allow for distinguishing between colors. For lines, an additional issue is the use of a dotted line. The color swatch for a legend should automatically (or explicitly, identically) set thickness for all legend items and should only pick up on opacity and dash from the per-series settings.

In the first example below, the areas are set to hair thickness and the line is dashed and xsmall. The resulting legend is terrible.
In the second example, the thicknesses are all undefined. This results in an unusable graph, but a reasonable legend, although dash should be considered in a legend.

image

Metadata

Metadata

Labels

enhancementA suggestion to add to or change behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions