c3 icon indicating copy to clipboard operation
c3 copied to clipboard

Regions don't get updated while you resize the browser window

Open rayhooker opened this issue 5 years ago • 2 comments

  • 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

rayhooker avatar Apr 17 '20 00:04 rayhooker

I am also facing same issue. Any turnaround available for now until this fixes from C3.

emb-sindgan avatar Jun 01 '21 10:06 emb-sindgan

Having the same issue. A dirty fix is to add:

onresized() {
  chart.regions([]);
  chart.regions(regions);
},

But this makes the region flickr

fxaeberhard avatar Jul 12 '22 11:07 fxaeberhard