<!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></style>
</head>
<body>
<div id='myChart'></div>
<script>
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
let chartConfig = {
type: 'pie',
title: {
text: 'Value Boxes'
},
subtitle: {
text: 'style connector lines',
fontWeight: 'normal'
},
plot: {
valueBox: {
text: '%v',
fontSize: 12,
fontFamily: 'Georgia',
fontWeight: 'normal',
connector: {
lineStyle: 'dashed',
lineSegmentSize: '5px'
},
rules: [{
rule: '%v > 50',
placement: 'in',
offsetR: '50%',
fontColor: 'white',
},
{
rule: '%v <= 50',
placement: 'out',
fontColor: 'gray',
}
]
},
borderWidth: 1,
borderColor: '#cccccc',
lineStyle: 'dotted'
},
plotarea: {
marginTop: '12%'
},
series: [{
values: [234],
backgroundColor: '#cc0000',
text: 'Alpha'
},
{
values: [121],
backgroundColor: '#ff3300',
text: 'Beta'
},
{
values: [77],
backgroundColor: '#ff6600',
text: 'Gamma'
},
{
values: [65],
backgroundColor: '#ff9933',
text: 'Delta'
},
{
values: [59],
backgroundColor: '#ffcc00',
text: 'Epsilon'
},
{
values: [35],
backgroundColor: '#ace600',
text: 'Zeta'
},
{
values: [34],
backgroundColor: '#88cc00',
text: 'Eta'
},
{
values: [31],
backgroundColor: '#339933',
text: 'Theta'
},
{
values: [16],
backgroundColor: '#66ccff',
text: 'Iota'
},
{
values: [14],
backgroundColor: '#3399ff',
text: 'Kappa'
},
{
values: [13],
backgroundColor: '#0066ff',
text: 'Lambda'
},
{
values: [12],
backgroundColor: '#3333cc',
text: 'Mu'
},
{
values: [11],
backgroundColor: '#6600ff',
text: 'Nu'
},
{
values: [10],
backgroundColor: '#9933ff',
text: 'Xi'
},
{
values: [9],
backgroundColor: '#9999ff',
text: 'Omicron'
}
]
};
zingchart.render({
id: 'myChart',
data: chartConfig,
height: 400,
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='myChart'></div>
</body>
</html>
let chartConfig = {
type: 'pie',
title: {
text: 'Value Boxes'
},
subtitle: {
text: 'style connector lines',
fontWeight: 'normal'
},
plot: {
valueBox: {
text: '%v',
fontSize: 12,
fontFamily: 'Georgia',
fontWeight: 'normal',
connector: {
lineStyle: 'dashed',
lineSegmentSize: '5px'
},
rules: [{
rule: '%v > 50',
placement: 'in',
offsetR: '50%',
fontColor: 'white',
},
{
rule: '%v <= 50',
placement: 'out',
fontColor: 'gray',
}
]
},
borderWidth: 1,
borderColor: '#cccccc',
lineStyle: 'dotted'
},
plotarea: {
marginTop: '12%'
},
series: [{
values: [234],
backgroundColor: '#cc0000',
text: 'Alpha'
},
{
values: [121],
backgroundColor: '#ff3300',
text: 'Beta'
},
{
values: [77],
backgroundColor: '#ff6600',
text: 'Gamma'
},
{
values: [65],
backgroundColor: '#ff9933',
text: 'Delta'
},
{
values: [59],
backgroundColor: '#ffcc00',
text: 'Epsilon'
},
{
values: [35],
backgroundColor: '#ace600',
text: 'Zeta'
},
{
values: [34],
backgroundColor: '#88cc00',
text: 'Eta'
},
{
values: [31],
backgroundColor: '#339933',
text: 'Theta'
},
{
values: [16],
backgroundColor: '#66ccff',
text: 'Iota'
},
{
values: [14],
backgroundColor: '#3399ff',
text: 'Kappa'
},
{
values: [13],
backgroundColor: '#0066ff',
text: 'Lambda'
},
{
values: [12],
backgroundColor: '#3333cc',
text: 'Mu'
},
{
values: [11],
backgroundColor: '#6600ff',
text: 'Nu'
},
{
values: [10],
backgroundColor: '#9933ff',
text: 'Xi'
},
{
values: [9],
backgroundColor: '#9999ff',
text: 'Omicron'
}
]
};
zingchart.render({
id: 'myChart',
data: chartConfig,
height: 400,
width: '100%'
});