Home Forums Report Bugs CanvasJs donut chart size is different in second slide of Bootstrap3 carousel Reply To: CanvasJs donut chart size is different in second slide of Bootstrap3 carousel

#7403

Hi,

After calculating the height and width of Carousel DOM element, you are not setting these values as the height and width of Chart because of which it is rendering with default (500*400) width & height.

You can check out this jsfiddle.

Also please do not set CSS on canvas elements directly. Instead you should set styles for Chart Container.

__
Anjali