c3
c3 copied to clipboard
Regions don't get updated while you resize the browser window
- C3 version: 7.15
- D3 version: 5.15.1
- Browser: Chrome Version 80.0.3987.163 , Safari 13.1
- OS: OSX
If you resize your browser window, the chart gets nicely rescaled, however regions remain in the same place. Can be noticed here: http://c3js.org/samples/region_timeseries.html
This was reported in issue #992 in 2015 but appears to have resurfaced. It was noticed in October of last year by another reporter who commented but did not create a new issue.
Note I did try executing resize(,..) but that does not cause the region to be redrawn
I am also facing same issue. Any turnaround available for now until this fixes from C3.
Having the same issue. A dirty fix is to add:
onresized() {
chart.regions([]);
chart.regions(regions);
},
But this makes the region flickr