Skip to content

Request to Show Both Line and Geometry in Legends for LineSeries #1937

@lobo-n3

Description

@lobo-n3

Is your feature request related to a problem? Please describe.
Currently, a LineSeries can have separate colors for Stroke (line) and GeometryStroke / GeometryFill (markers). For example, I can display a series with red lines and blue markers, and another series with yellow lines and blue markers.

However, in the legend for these series, only one element (either the marker or the line) is displayed before the legend name. This makes it impossible to distinguish the two series in the legend if they share the same marker color but have different line colors.

Describe the solution you'd like
When a LineSeries has both a visible Stroke and a visible GeometryStroke / GeometryFill, I would like the legend to display both:

  • A short line segment in the Stroke color
  • A marker in the GeometryStroke / GeometryFill color
    These should be displayed together before the legend name to represent both aspects of the series.

Describe alternatives you've considered
I could manually create a custom legend, but that requires additional maintenance and breaks consistency with the built-in legend rendering.

Additional context
This would help distinguish series where markers are the same color but lines differ, and vice versa, improving clarity for complex charts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions