Gets passed two arguments: the chart instance and the new size.ĭelay the resize update by the given amount of milliseconds. The default value varies by chart type Radial charts (doughnut, pie, polarArea, radar) default to 1 and others default to 2.Ĭalled when a resize occurs. Note that this option is ignored if the height is explicitly defined either as attribute or via the style. width / height, a value of 1 representing a square canvas). Maintain the original canvas aspect ratio (width / height) when resizing.Ĭanvas aspect ratio (i.e. Resizes the chart canvas when its container does ( important note.). Chart.js needs a dedicated container for each canvas and this styling should be applied there.Ĭhart.js provides a few options to enable responsiveness and control the resize behavior of charts by detecting when the canvas display size changes and update the render size accordingly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |