You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the .resize() method, the chart apparently does not redraw. Here is the documentation entry for the .resize method:
.resize()
Use this to manually resize the canvas element. This is run each time the browser is resized, but you can call this method manually if you change the size of the canvas nodes container element.
// Resizes & redraws to fill its container element
myLineChart.resize();
// => returns 'this' for chainability
(end of documentation entry)
According to the comment, the chart should resize and redraw.
Here is a JSFiddle demonstration (after clicking the "resize" button, the chart disappears; it will reappear if the mouse is moved over it):
When using the .resize() method, the chart apparently does not redraw. Here is the documentation entry for the .resize method:
.resize()
Use this to manually resize the canvas element. This is run each time the browser is resized, but you can call this method manually if you change the size of the canvas nodes container element.
(end of documentation entry)
According to the comment, the chart should resize and redraw.
Here is a JSFiddle demonstration (after clicking the "resize" button, the chart disappears; it will reappear if the mouse is moved over it):
https://jsfiddle.net/n8zL1x01/1/
I believe this is either a bug or a mistake in the documentation.
Tested in Chrome 39.0
The text was updated successfully, but these errors were encountered: