If the react-chart components is placed into a default display-none component, the canvas would be set to <canvas height="0"> .
Even if states change and a re-render triggered, the canvas re-calculate sizes but height still equal to 0 .So a error will be throw: Uncaught IndexSizeError: Failed to execute 'arc' on 'CanvasRenderingContext2D': The radius provided (-0.5) is negative.
I dont know which code deal with canvas size. the redraw props did not helps
If the react-chart components is placed into a default display-none component, the canvas would be set to
<canvas height="0">
.Even if
states
change and a re-render triggered, the canvas re-calculate sizes but height still equal to 0 .So a error will be throw:Uncaught IndexSizeError: Failed to execute 'arc' on 'CanvasRenderingContext2D': The radius provided (-0.5) is negative.
I dont know which code deal with canvas size. the
redraw
props did not helps