<!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 {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background-color: #ccc;
}
.chart--container {
min-height: 150px;
width: 100%;
height: 100%;
max-width: 1200px;
max-height: 700px;
margin: auto;
}
.zc-ref {
display: none;
}
</style>
</head>
<body>
<!-- CHART CONTAINER -->
<div id="myChart" class="chart--container">
<a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a>
</div>
<script>
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"]; // window:load event for Javascript to run after HTML
// because this Javascript is injected into the document head
window.addEventListener('load', () => {
// Javascript code to execute after DOM content
// full ZingChart schema can be found here:
// https://www.zingchart.com/docs/api/json-configuration/
let chartConfig = {
"type": "venn",
"backgroundColor": "none",
"title": {
"text": "The War On Parents",
"font-family": "arial",
"bold": true,
"font-size": 24,
"margin": "15 0 0 25",
"text-align": "left",
"font-color": "#333333",
"background-color": "-1"
},
"tooltip": {
"visible": false
},
"plot": {
"border-width": 3,
"alpha": 0.3,
"value-box": {
"type": "all",
"text": "%t",
"background-color": "-1,-1",
"font-color": "#000",
"bold": true,
"font-size": 15
}
},
"series": [{
"values": [
180
],
"join": [
80
],
"text": "How Much You Like To <br> Talk About Your Kids",
"background-color": "#0000ff",
"border-color": "#0000ff",
"value-box": {
"offset-x": -105,
"offset-y": -45
}
},
{
"values": [
130
],
"join": [
25
],
"text": "How Much You Like Your Kids",
"background-color": "#ff0000",
"border-color": "#ff0000",
"value-box": {
"offset-x": 80,
"offset-y": 55
}
},
{
"values": [
15
],
"y": 100,
"text": "How Much I Like Your Kids",
"background-color": "#00ff00",
"border-color": "#00ff00",
"value-box": {
"offset-x": 80,
"offset-y": 85
}
}
]
};;
// render chart
zingchart.render({
id: 'myChart',
data: chartConfig,
height: '100%',
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>
<!-- CHART CONTAINER -->
<div id="myChart" class="chart--container">
<a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a>
</div>
</body>
</html>
html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background-color: #ccc;
}
.chart--container {
min-height: 150px;
width: 100%;
height: 100%;
max-width: 1200px;
max-height: 700px;
margin: auto;
}
.zc-ref {
display: none;
}
// window:load event for Javascript to run after HTML
// because this Javascript is injected into the document head
window.addEventListener('load', () => {
// Javascript code to execute after DOM content
// full ZingChart schema can be found here:
// https://www.zingchart.com/docs/api/json-configuration/
let chartConfig = {
"type": "venn",
"backgroundColor": "none",
"title": {
"text": "The War On Parents",
"font-family": "arial",
"bold": true,
"font-size": 24,
"margin": "15 0 0 25",
"text-align": "left",
"font-color": "#333333",
"background-color": "-1"
},
"tooltip": {
"visible": false
},
"plot": {
"border-width": 3,
"alpha": 0.3,
"value-box": {
"type": "all",
"text": "%t",
"background-color": "-1,-1",
"font-color": "#000",
"bold": true,
"font-size": 15
}
},
"series": [{
"values": [
180
],
"join": [
80
],
"text": "How Much You Like To <br> Talk About Your Kids",
"background-color": "#0000ff",
"border-color": "#0000ff",
"value-box": {
"offset-x": -105,
"offset-y": -45
}
},
{
"values": [
130
],
"join": [
25
],
"text": "How Much You Like Your Kids",
"background-color": "#ff0000",
"border-color": "#ff0000",
"value-box": {
"offset-x": 80,
"offset-y": 55
}
},
{
"values": [
15
],
"y": 100,
"text": "How Much I Like Your Kids",
"background-color": "#00ff00",
"border-color": "#00ff00",
"value-box": {
"offset-x": 80,
"offset-y": 85
}
}
]
};;
// render chart
zingchart.render({
id: 'myChart',
data: chartConfig,
height: '100%',
width: '100%',
});
});