<!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"];
var myConfig = {
"graphset": [{
"labels": [{
"text": "Shared Legend",
"font-size": 20,
"font-weight": "bold",
"height": "20%",
"width": "100%",
"x": "40%",
"y": "20%"
}]
},
{
"type": "ring",
"legend": {
"shared": true
},
"height": "90%",
"width": "33%",
"x": "0%",
"y": "10%",
"plot": {
"value-box": {
"font-size": 12
}
},
"series": [{
"values": [35],
"text": "Blue Series"
},
{
"values": [34],
"text": "Red Series"
},
{
"values": [31],
"text": "Green Series"
}
]
},
{
"type": "ring",
"legend": {
"shared": true
},
"height": "90%",
"width": "33%",
"x": "33%",
"y": "10%",
"plot": {
"value-box": {
"font-size": 12
}
},
"series": [{
"values": [65],
"text": "Blue Series"
},
{
"values": [30],
"text": "Red Series"
},
{
"values": [16],
"text": "Green Series"
}
]
},
{
"type": "ring",
"legend": {
"shared": true,
"x": "65%",
"y": "10%",
"background-color": "#f2f2f2",
"border-width": 1,
"border-color": "#cccccc",
"border-radius": "3px",
"item": {
"font-family": "Georgia",
"border-radius": "3px"
},
"marker": {
"type": "circle",
"size": 3
}
},
"height": "90%",
"width": "33%",
"x": "66%",
"y": "10%",
"plot": {
"value-box": {
"font-size": 12
}
},
"series": [{
"values": [59],
"text": "Blue Series",
"legend-item": {
"background-color": "#29A2CC",
"font-color": "#eaf7fb"
},
"legend-marker": {
"border-color": "#29A2CC",
"background-color": "#eaf7fb"
}
},
{
"values": [49],
"text": "Red Series",
"legend-item": {
"background-color": "#D31E1E",
"font-color": "#fce9e9"
},
"legend-marker": {
"border-color": "#D31E1E",
"background-color": "#fce9e9"
}
},
{
"values": [31],
"text": "Green Series",
"legend-item": {
"background-color": "#7CA82B",
"font-color": "#f5faeb"
},
"legend-marker": {
"border-color": "#7CA82B",
"background-color": "#f5faeb"
}
}
]
}
]
};
zingchart.render({
id: 'myChart',
data: myConfig,
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>
var myConfig = {
"graphset": [{
"labels": [{
"text": "Shared Legend",
"font-size": 20,
"font-weight": "bold",
"height": "20%",
"width": "100%",
"x": "40%",
"y": "20%"
}]
},
{
"type": "ring",
"legend": {
"shared": true
},
"height": "90%",
"width": "33%",
"x": "0%",
"y": "10%",
"plot": {
"value-box": {
"font-size": 12
}
},
"series": [{
"values": [35],
"text": "Blue Series"
},
{
"values": [34],
"text": "Red Series"
},
{
"values": [31],
"text": "Green Series"
}
]
},
{
"type": "ring",
"legend": {
"shared": true
},
"height": "90%",
"width": "33%",
"x": "33%",
"y": "10%",
"plot": {
"value-box": {
"font-size": 12
}
},
"series": [{
"values": [65],
"text": "Blue Series"
},
{
"values": [30],
"text": "Red Series"
},
{
"values": [16],
"text": "Green Series"
}
]
},
{
"type": "ring",
"legend": {
"shared": true,
"x": "65%",
"y": "10%",
"background-color": "#f2f2f2",
"border-width": 1,
"border-color": "#cccccc",
"border-radius": "3px",
"item": {
"font-family": "Georgia",
"border-radius": "3px"
},
"marker": {
"type": "circle",
"size": 3
}
},
"height": "90%",
"width": "33%",
"x": "66%",
"y": "10%",
"plot": {
"value-box": {
"font-size": 12
}
},
"series": [{
"values": [59],
"text": "Blue Series",
"legend-item": {
"background-color": "#29A2CC",
"font-color": "#eaf7fb"
},
"legend-marker": {
"border-color": "#29A2CC",
"background-color": "#eaf7fb"
}
},
{
"values": [49],
"text": "Red Series",
"legend-item": {
"background-color": "#D31E1E",
"font-color": "#fce9e9"
},
"legend-marker": {
"border-color": "#D31E1E",
"background-color": "#fce9e9"
}
},
{
"values": [31],
"text": "Green Series",
"legend-item": {
"background-color": "#7CA82B",
"font-color": "#f5faeb"
},
"legend-marker": {
"border-color": "#7CA82B",
"background-color": "#f5faeb"
}
}
]
}
]
};
zingchart.render({
id: 'myChart',
data: myConfig,
height: 400,
width: "100%"
});