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
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.