<!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: 100%;
width: 100%;
min-height: 150px;
}
</style>
</head>
<body>
<div id='myChart'></div>
<script>
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
var myConfig = {
type: 'bar',
plot: {
valueBox: {
fontColor: 'black',
decimals: 1
}
},
scaleX: {
labels: ['Ch 1: Intro to Math', 'Ch 2: More Math', 'Ch 3: Learning Algebra', 'Ch 4: And Some Calculus'],
item: {
maxChars: 4
},
tooltip: {
text: '%v',
fontColor: 'black',
textAlpha: 1,
alpha: 0.8,
backgroundColor: 'white',
borderWidth: 1,
borderColor: 'gray',
borderRadius: '3px',
padding: '5%'
},
guide: {
visible: true,
lineStyle: 'solid'
}
},
scaleY: {
values: '0:20:4',
guide: {
lineStyle: 'solid'
}
},
series: [{
values: [0, 0, 17, 0],
backgroundColor: '#ffff00'
},
{
values: [1, 2, 6, 18],
backgroundColor: '#194d19'
}
]
};
zingchart.render({
id: 'myChart',
data: myConfig,
height: 600,
width: 400
});
</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='myChart'></div>
</body>
</html>
html,
body {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
#myChart {
height: 100%;
width: 100%;
min-height: 150px;
}
var myConfig = {
type: 'bar',
plot: {
valueBox: {
fontColor: 'black',
decimals: 1
}
},
scaleX: {
labels: ['Ch 1: Intro to Math', 'Ch 2: More Math', 'Ch 3: Learning Algebra', 'Ch 4: And Some Calculus'],
item: {
maxChars: 4
},
tooltip: {
text: '%v',
fontColor: 'black',
textAlpha: 1,
alpha: 0.8,
backgroundColor: 'white',
borderWidth: 1,
borderColor: 'gray',
borderRadius: '3px',
padding: '5%'
},
guide: {
visible: true,
lineStyle: 'solid'
}
},
scaleY: {
values: '0:20:4',
guide: {
lineStyle: 'solid'
}
},
series: [{
values: [0, 0, 17, 0],
backgroundColor: '#ffff00'
},
{
values: [1, 2, 6, 18],
backgroundColor: '#194d19'
}
]
};
zingchart.render({
id: 'myChart',
data: myConfig,
height: 600,
width: 400
});