Bug description
As you create a mixed chart and use the time comparison function, it doesn't show the "1 week ago" lines dotted, it shows both lines filled. If you change it to a regular line chart, it will dot the time comparison line normally.
Screenshots/recordings
Superset version
master / latest-dev
Python version
I don't know
Node version
I don't know
Browser
Not applicable
Additional context
No response
Checklist
- [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [x] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [x] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
Comment From: dosubot[bot]
This is a known gap in the current implementation: the mixed chart does not apply dotted or dashed line styles to time comparison ("derived") series, unlike the regular line chart. In the code, the line chart's transformation logic explicitly checks for time comparison series and assigns a dotted/dashed style, but the mixed chart's transformation code does not include this logic—so all lines, including time comparisons, appear solid by default. This isn't a documented limitation or a recent regression, but rather a missing feature in the mixed chart implementation. If you want to address this, the relevant code is in the transformProps
functions for both chart types, and the logic from the line chart could be adapted for the mixed chart to achieve the expected styling behavior. For more details, see the implementation in the line chart's transformProps.ts
and the mixed chart's transformProps.ts
.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other