Dimensions in TypeScript 3D Chart control
18 Nov 20181 minute to read
Size for container
The 3D chart can be rendered to its container size and it can be set via inline or CSS as demonstrated below.
<div id='container'>
<div id='element' style="width:650px; height:350px;"></div>
</div>Size for chart
The size of the 3D chart can be set directly through width and height properties.
In Pixel
The size of the 3D chart can be set in pixel as demonstrated below.
In Percentage
By setting the value in percentage, 3D chart gets its dimension with respect to its container. For example, when the height is 50%, chart renders to half of the container height.
Note: When you do not specify the size, it takes
450pxas the height and window size as its width.