Custom Line Style (Dashed/Solid/Dotted) per Series in ECharts Line & Mixed Charts #36493
simon-cerda
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
Currently, in Apache Superset (tested on 4.x, 5.x, and checking 6.0.x beta), the "Dashed" line style is exclusively reserved for Time Shift comparisons (e.g., "vs 1 year ago").
There is no native way in the UI to manually set a specific metric (series) to be displayed as a dashed line.
This is a critical limitation for business dashboards that need to compare Actual vs. Budget/Target or Forecast vs. Real, where the standard convention is to use a solid line for "Actual" and a dashed line for "Budget/Target" without relying on time-shifts.
Describe the solution you'd like
I propose adding a control in the Customize tab (or within the specific Series configuration in Mixed Charts) to override the
lineStyle.Preferred UX:
In the "Customize" tab, under a new "Series Style" section:
Solid(Default) |Dashed|Dotted.Technical Context:
Since Superset uses Apache ECharts, this is natively supported by the library via
series.lineStyle.type.Currently,
transformProps.tsseems to hardcode this logic based solely on theisTimeShiftboolean. We need a way to pass a manual override prop to the ECharts generator.Describe alternatives you've considered
Additional context
As Superset moves towards v6.0 with the Ant Design system, adding granular control over visual data representation would be a huge win for data storytelling.
We are looking to implement this for charts like:
Beta Was this translation helpful? Give feedback.
All reactions