dosubot[bot] commented on issue #36806: URL: https://github.com/apache/superset/issues/36806#issuecomment-3685774858
<!-- Answer --> This is a regression caused by a change in how Superset detects and styles offset metrics (derived series) in line charts. In recent versions, the code only applies dashed line styling to offset metrics if the chart's `comparison_type` is set to `"Values"`. If it's set to anything else, offset metrics are not flagged as derived and appear as solid lines instead. This differs from earlier versions, where dashed styling was applied regardless of `comparison_type` ([source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/packages/superset-ui-chart-controls/src/operators/utils/isDerivedSeries.ts#L28-L38)). Currently, there is no documented configuration or workaround to restore dashed lines for offset metrics in 6.0.0. You may be able to work around this by explicitly setting `comparison_type` to `"Values"` in your chart configuration, but if your use case requires a different comparison type, a code change will be needed to restore the previous behavior ([source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts#L287-L335)). If this is critical for your workflow, tracking this as a regression for a future fix is recommended. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/8f8dcabe-683f-482d-ad67-0cfcebc881fb?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/8f8dcabe-683f-482d-ad67-0cfcebc881fb?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/8f8dcabe-683f-482d-ad67-0cfcebc881fb?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/8f8dcabe-683f-482d-ad67-0cfcebc881fb?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/8f8dcabe-683f-482d-ad67-0cfcebc881fb?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/8f8dcabe-683f-482d-ad67-0cfcebc881fb?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/8f8dcabe-683f-482d-ad67-0cfcebc881fb?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=This%20is%20a%20regression%20caused%20by%20a%20change%20in%20how%20Superset%20detects%20and%20styles%20offset%20metrics%20%28derived%20series%29%20in%20line%20charts.%20In%20recent%20versions%2C%20the%20code%20only%20applies%20dashed%20line%20styling%20to%20offset%20metrics%20if%20the%20chart%27s%20%60comparison_type%60%20is%20set%20to%20%60%22Values%22%60.%20If%20it%27s%20set%20to%20anything%20else%2C%20offset%20metrics%20are%20not%20flagged%20as%20derived%20and%20appear%20as%20solid%20lines%20instead.%20This%20differs%20from%20earlier%20versions%2C%20where%20dashed%20styling%20was%20applied%20regardless%20of%20%60comparison_type%60%20%28%5Bsource%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-fron tend/packages/superset-ui-chart-controls/src/operators/utils/isDerivedSeries.ts%23L28-L38%29%29.%0A%0ACurrently%2C%20there%20is%20no%20documented%20configuration%20or%20workaround%20to%20restore%20dashed%20lines%20for%20offset%20metrics%20in%206.0.0.%20You%20may%20be%20able%20to%20work%20around%20this%20by%20explicitly%20setting%20%60comparison_type%60%20to%20%60%22Values%22%60%20in%20your%20chart%20configuration%2C%20but%20if%20your%20use%20case%20requires%20a%20different%20comparison%20type%2C%20a%20code%20change%20will%20be%20needed%20to%20restore%20the%20previous%20behavior%20%28%5Bsource%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts%23L287-L335%29%29.%20%0A%0AIf%20this%20is%20critical%20for%20your%20workflow%2C%20tracking%20this%20as%20a%20regression%20for%20a%20future%20fix%20is%20recommended.) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/36806) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
