Home Forums Report Bugs Rendering messed up when chart is loaded hidden Reply To: Rendering messed up when chart is loaded hidden

#14292

@gregoff

Since the Container is not displayed initially, chart takes the default values for width and height.
To show the chart with given height and width of the container, just re-render the chart once the chart container is displayed. Here is a JSFiddle for same.

Toggle visibility of chart on click of button

You can also take a look at following examples if you’re working on Bootstrap:
Example 1,
Example 2
Example 3

——
Bivek Singh
Team CanvasJS