javascript - Unable to call chart.setSize on div resize in responsiveReactGridLayout -


issue on resize of chart along container resize

_loadsavedchart(){    return (       <responsivereactgridlayout layouts={this.state.layout}          onlayoutchange={this.onlayoutchange}         classname={this.state.classname}                     rowheight={this.state.rowheight}         cols={this.state.cols}         initiallayout= {this.state.layout}         initialwidth={this.state.initialwidth}         width={this.state.width}         verticalcompact={false}         listentowindowresize={false}         currentbreakpoint= 'sm'         >       {this.state.savedchartindashboard.map((data, i) =>        <paper key={i} classname="c3chart" style={style.chartpaperstyle} zdepth={1}>{this._renderchart(data)}          </paper>       )}      </responsivereactgridlayout> )   } 

i using responsiverectgridlayout draggabe , resizing charts resizing on window resize not on container resize.

  onlayoutchange(layout) {     console.log(layout);    chart.setsize(w, h, false)    } 

i unable pass setsize function highcharts. in advance


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -