You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "chdenat (via GitHub)" <gi...@apache.org> on 2024/09/10 20:09:32 UTC
Re: [I] [Bug] Chart doesnt resize itselft to full container width [echarts]
chdenat commented on issue #19624:
URL: https://github.com/apache/echarts/issues/19624#issuecomment-2341922273
I got the same. I think that it is a bug.
But if you use react states you can have the expected behavior.
Set the react width and height to 2 states.
In a window resize event, set these states to the chart container width and height values.
So each time the window will be resizes, the chart is resized to its container.
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org