<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ZingSoft Demo</title>
<script nonce="undefined" src="//www.zingchart.com/scripts/zcDocs.js"></script>
<link href='//www.zingchart.com/css/zcDocs.css' rel='stylesheet' type='text/css'>
<script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
<style></style>
</head>
<body>
<div id='demo-chart'></div>
<pre id='output'></pre>
<script>
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
var myConfig = {
'type': 'line',
'title': {
'text': 'Average Metric'
},
'tooltip': {
'height': 60,
'sticky': true,
'timeout': 1000,
'font-size': 11,
'text': '<div class="chart-tooltip">Node value is %node-value<br><a href="#">Click here for more info</a></div>',
'text-align': 'left',
'background-color': '#fff',
'color': '#333',
'padding': 10,
'shadow': false,
'border-width': 1,
'border-color': '#ccc',
'border-radius': 4,
'html-mode': true,
'placement': 'horizontal',
'distance': 10,
'callout-width': 6,
'callout-height': 20,
'callout': true
},
'series': [{
'values': [69, 68, 54, 48, 70, 74, 98, 70, 72, 68, 49, 69],
'text': 'Apple'
},
{
'values': [51, 53, 47, 60, 48, 52, 75, 52, 55, 47, 60, 48],
'text': 'Microsoft'
},
{
'values': [42, 43, 30, 40, 31, 48, 55, 46, 48, 32, 38, 38],
'text': 'Oracle'
},
{
'values': [25, 15, 26, 21, 24, 26, 33, 25, 15, 25, 22, 24],
'text': 'Dell'
}
]
};
zingchart.bind('demo-chart', 'node_mouseover', function(p) {
var el = document.getElementsByClassName('chart-tooltip');
if (el) {
for (var n = 0; n < el.length; n++) {
el[n].addEventListener('mouseover', function(e) {
zingchart.exec(p.id, 'locktooltip');
zcdocs.demos.dump('locktooltip', output);
});
el[n].addEventListener('mouseout', function(e) {
let output = zingchart.exec(p.id, 'unlocktooltip');
zcdocs.demos.dump('unlocktooltip', output);
});
}
}
});
zingchart.render({
id: 'demo-chart',
data: myConfig,
height: 400,
width: '100%'
});
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ZingSoft Demo</title>
<script src="//www.zingchart.com/scripts/zcDocs.js"></script>
<link href='//www.zingchart.com/css/zcDocs.css' rel='stylesheet' type='text/css'>
<script src="https://cdn.zingchart.com/zingchart.min.js"></script>
</head>
<body>
<div id='demo-chart'></div>
<pre id='output'></pre>
</body>
</html>
var myConfig = {
'type': 'line',
'title': {
'text': 'Average Metric'
},
'tooltip': {
'height': 60,
'sticky': true,
'timeout': 1000,
'font-size': 11,
'text': '<div class="chart-tooltip">Node value is %node-value<br><a href="#">Click here for more info</a></div>',
'text-align': 'left',
'background-color': '#fff',
'color': '#333',
'padding': 10,
'shadow': false,
'border-width': 1,
'border-color': '#ccc',
'border-radius': 4,
'html-mode': true,
'placement': 'horizontal',
'distance': 10,
'callout-width': 6,
'callout-height': 20,
'callout': true
},
'series': [{
'values': [69, 68, 54, 48, 70, 74, 98, 70, 72, 68, 49, 69],
'text': 'Apple'
},
{
'values': [51, 53, 47, 60, 48, 52, 75, 52, 55, 47, 60, 48],
'text': 'Microsoft'
},
{
'values': [42, 43, 30, 40, 31, 48, 55, 46, 48, 32, 38, 38],
'text': 'Oracle'
},
{
'values': [25, 15, 26, 21, 24, 26, 33, 25, 15, 25, 22, 24],
'text': 'Dell'
}
]
};
zingchart.bind('demo-chart', 'node_mouseover', function(p) {
var el = document.getElementsByClassName('chart-tooltip');
if (el) {
for (var n = 0; n < el.length; n++) {
el[n].addEventListener('mouseover', function(e) {
zingchart.exec(p.id, 'locktooltip');
zcdocs.demos.dump('locktooltip', output);
});
el[n].addEventListener('mouseout', function(e) {
let output = zingchart.exec(p.id, 'unlocktooltip');
zcdocs.demos.dump('unlocktooltip', output);
});
}
}
});
zingchart.render({
id: 'demo-chart',
data: myConfig,
height: 400,
width: '100%'
});