GitHub user dosubot[bot] added a comment to the discussion: Superset Line Chart line witdh resize
<!-- Greeting --> Hi @ersandemir! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> You don't need to force a re-render or use any special lifecycle method for style changes like lineStyle.width in Superset ECharts plugins. The architecture is designed so that when you update a control with renderTrigger: true and ensure your echartOptions object is recreated immutably, the Echart component will call setOption with merge=true, which should apply style changes like line width immediately ([source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/components/Echart.tsx)). If the change isn't reflected, it's usually due to mutability issues—like reusing or mutating the same options object instead of creating a new one. Double-check that your transformProps and transformSeries functions always return new objects and don't mutate previous state in place. No manual refresh or hack should be required if the options are updated immutably and passed down correctly ([source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/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/fb9bce4d-298c-4094-bdb7-567e92dd3f37?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/fb9bce4d-298c-4094-bdb7-567e92dd3f37?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/fb9bce4d-298c-4094-bdb7-567e92dd3f37?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/fb9bce4d-298c-4094-bdb7-567e92dd3f37?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/fb9bce4d-298c-4094-bdb7-567e92dd3f37?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/fb9bce4d-298c-4094-bdb7-567e92dd3f37?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/fb9bce4d-298c-4094-bdb7-567e92dd3f37?feedback_type=other)</sup> [](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/discussions/34223) GitHub link: https://github.com/apache/superset/discussions/34223#discussioncomment-13808167 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
