<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ZingSoft Demo</title>
<script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
<style>
html,
body {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
#myChart {
height: 500;
width: 500;
min-height: 150px;
}
.zc-ref {
display: none;
}
</style>
</head>
<body>
<div id="myChartBar"></div>
<div id="myChartLine"></div>
<script>
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
var myConfigBar = {
type: 'bar',
series: [{
values: [35, 42, 67, 89, 25, 34, 67, 85]
}]
};
var myConfigLine = {
type: 'line',
series: [{
values: [45, 42, 4, 89, 25, 34, 67, 35]
}]
};
var count = 0;
zingchart.load = function(p) {
count++;
if (count === 2) {
zingchart.exec('myChartBar', 'exportimage', {
download: true,
format: 'pdf',
uid: 'myexport',
page: '1/2'
});
zingchart.exec('myChartLine', 'exportimage', {
download: true,
format: 'pdf',
uid: 'myexport',
page: '2/2'
});
}
}
zingchart.render({
id: 'myChartBar',
data: myConfigBar,
height: 500,
width: '100%'
});
zingchart.render({
id: 'myChartLine',
data: myConfigLine,
height: 500,
width: '100%'
});
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ZingSoft Demo</title>
<script src="https://cdn.zingchart.com/zingchart.min.js"></script>
</head>
<body>
<div id="myChartBar"></div>
<div id="myChartLine"></div>
</body>
</html>
html,
body {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
#myChart {
height: 500;
width: 500;
min-height: 150px;
}
.zc-ref {
display: none;
}
var myConfigBar = {
type: 'bar',
series: [{
values: [35, 42, 67, 89, 25, 34, 67, 85]
}]
};
var myConfigLine = {
type: 'line',
series: [{
values: [45, 42, 4, 89, 25, 34, 67, 35]
}]
};
var count = 0;
zingchart.load = function(p) {
count++;
if (count === 2) {
zingchart.exec('myChartBar', 'exportimage', {
download: true,
format: 'pdf',
uid: 'myexport',
page: '1/2'
});
zingchart.exec('myChartLine', 'exportimage', {
download: true,
format: 'pdf',
uid: 'myexport',
page: '2/2'
});
}
}
zingchart.render({
id: 'myChartBar',
data: myConfigBar,
height: 500,
width: '100%'
});
zingchart.render({
id: 'myChartLine',
data: myConfigLine,
height: 500,
width: '100%'
});