I visited the ZingChart documentation and got acquainted with the rendering methods of several diagrams by calling several rendering functions as follows.
zingchart.render({
id:'chartDiv1',
data:myChart1,
height:300,
width:500
});
zingchart.render({
id:'chartDiv2',
data:myChart2,
height:300,
width:500
});
zingchart.render({
id:'chartDiv3',
data:myChart3,
height:300,
width:500
});
zingchart.render({
id:'dashboardDiv',
data:myDashboard,
height:500,
width:700
});
But in my code I want to write less code , which should work more for me as it is also directed by my boss .
So my question is Can I display multiple diagrams just by calling one rendering function ? sort of:
zingchart.render({
id:{'chartDiv1','chartDiv2','chartDiv3','chartDiv4'},
data:{myChart1,myChart2,myChart3,myChart4},
height:300,
width:500
});
Thanks in advance.
source
share