Whenever I set the height and width of a ZingChart as a percentage so that it is compatible with all screen sizes, it does not affect. Example: if I set the height to 1% and the width to 1%, nothing happens. I change the height and width as:
zingchart.render({
id : 'myChart',
data : myConfig,
height: '1%',
width: '1%'
});
You can view the full code here: http://jsfiddle.net/xbh2ap18/
source
share