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