Skip to content

SP5: Improve legend support for the FillY plot type #2886

@msroest

Description

@msroest

Feature Suggestion

Feature description:
I'm attempting to create a FillY plot with 2 series 1 for power usage and 1 for Solar power generated I'm currently able to get it to look the way I'm wanting by using the FillY and setting the second series to all 0's so it just fills from my data point to the x-axis. However I would like to still have a Legend and it appears that the FillY doesn't have a Label to set and is hardcoded to always return no LegendItems
https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5/Plottables/FillY.cs#L8
vs Scatter
https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5/Plottables/Scatter.cs#L28

I can't imagine I'm the only one who wants to do something like this;
What I'm currently getting:
generation

Scatter with the same plot but with legend:
generation-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueThis issue has limited complexity and may be a good start for new contributorsHelp WantedScott won't do this soon, but PRs from the community are welcome!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions