dosubot[bot] commented on issue #36807: URL: https://github.com/apache/superset/issues/36807#issuecomment-3685873164
<!-- Greeting --> Hi @IHadAFish! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> The Treemap chart in Superset 6.0.0 uses a categorical color scale for node coloring, which is why sequential coloring is no longer available—this is a change from earlier versions and is now hardcoded in the chart's transform logic. The 1px gap around the key/value text is caused by explicit `gapWidth` and `borderWidth` settings in the chart's frontend code, which were introduced in the newer ECharts-based Treemap implementation. These settings are not user-configurable from the UI, and there are currently no documented workarounds or configuration options to restore sequential coloring or remove the gap in recent versions. Both behaviors are a result of intentional changes in the chart plugin code, not a bug or misconfiguration on your end. You can see the relevant code and constants here: - [Treemap transformProps.ts (coloring and label styling)](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Treemap/transformProps.ts#L146-L237) - [Treemap constants.ts (gap and border settings)](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Treemap/constants.ts#L22-L26) If you need sequential coloring or want to remove the gap, it would require customizing the plugin code or requesting this as a feature enhancement. <!-- 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/f9a15c1e-596e-4654-9558-df19512463e2?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/f9a15c1e-596e-4654-9558-df19512463e2?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/f9a15c1e-596e-4654-9558-df19512463e2?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/f9a15c1e-596e-4654-9558-df19512463e2?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/f9a15c1e-596e-4654-9558-df19512463e2?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/f9a15c1e-596e-4654-9558-df19512463e2?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/f9a15c1e-596e-4654-9558-df19512463e2?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=The%20Treemap%20chart%20in%20Superset%206.0.0%20uses%20a%20categorical%20color%20scale%20for%20node%20coloring%2C%20which%20is%20why%20sequential%20coloring%20is%20no%20longer%20available%E2%80%94this%20is%20a%20change%20from%20earlier%20versions%20and%20is%20now%20hardcoded%20in%20the%20chart%27s%20transform%20logic.%20The%201px%20gap%20around%20the%20key/value%20text%20is%20caused%20by%20explicit%20%60gapWidth%60%20and%20%60borderWidth%60%20settings%20in%20the%20chart%27s%20frontend%20code%2C%20which%20were%20introduced%20in%20the%20newer%20ECharts-based%20Treemap%20implementation.%20These%20settings%20are%20not%20user-configurable%20from%20the%20UI%2C%20and%20there%20are%20currently%20no%20documented%20workarounds%20or%20configuration%20options% 20to%20restore%20sequential%20coloring%20or%20remove%20the%20gap%20in%20recent%20versions.%20Both%20behaviors%20are%20a%20result%20of%20intentional%20changes%20in%20the%20chart%20plugin%20code%2C%20not%20a%20bug%20or%20misconfiguration%20on%20your%20end.%20%20%0AYou%20can%20see%20the%20relevant%20code%20and%20constants%20here%3A%20%20%0A-%20%5BTreemap%20transformProps.ts%20%28coloring%20and%20label%20styling%29%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Treemap/transformProps.ts%23L146-L237%29%20%20%0A-%20%5BTreemap%20constants.ts%20%28gap%20and%20border%20settings%29%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Treemap/constants.ts%23L22-L26%29%0A%0AIf%20you%20need%20sequential%20coloring%20or%20want%20to%20remove%20the%20gap%2C%20it%20would%20require%20customizing%20the%20plugin%20code%20or%20r equesting%20this%20as%20a%20feature%20enhancement.) [](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/36807) -- 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]
