dosubot[bot] commented on issue #30270: URL: https://github.com/apache/superset/issues/30270#issuecomment-3109885465
<!-- Answer --> ECharts' radar series doesn't natively support breaking lines for missing/null values—setting values to `undefined` or `null` still draws a line to the center, which is why the previous approach didn't work. The only way to get the desired behavior (no line for missing data, or just a point if both neighbors are missing) is to preprocess the data in `transformProps` and use ECharts' `'custom'` series type, which allows for per-segment rendering in polar coordinates. Superset already uses this approach for Gantt charts, so it's feasible to adapt it for radar charts as well. This would involve splitting each series into contiguous non-null segments (each as a separate polyline), and rendering isolated points where needed. All of this logic would live in `transformProps`, since there are no per-point rendering hooks in the standard radar series. For reference, see how the Gantt chart plugin leverages the `'custom'` series and `renderItem` for fine-grained control. No PRs or docs currently address this for radar charts, but the architecture supports it at the ECharts config level right before rendering. If you want to prototype, start by segmenting your value arrays and building a `'custom'` series config in `transformProps`—that will let you visually distinguish between zeros and missing data as described in your design input. [transformProps.ts](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Radar/transformProps.ts) <!-- 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/f6dbb101-f8ae-4719-83cc-18e002809e47?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/f6dbb101-f8ae-4719-83cc-18e002809e47?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/f6dbb101-f8ae-4719-83cc-18e002809e47?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/f6dbb101-f8ae-4719-83cc-18e002809e47?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/f6dbb101-f8ae-4719-83cc-18e002809e47?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/f6dbb101-f8ae-4719-83cc-18e002809e47?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/f6dbb101-f8ae-4719-83cc-18e002809e47?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](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/30270) -- 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]
