<!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 = {
"type": "heatmap",
"title": {
"text": "%y"
},
"plot": {
"tooltip": {
"text": "%kl will be<br>%data-weather<br>in %y!",
"background-color": "white",
"alpha": 0.7,
"font-family": "Georgia",
"font-color": "#006699"
},
"aspect": "none",
"background-color": "none",
"background-repeat": false,
"rules": [{
"rule": "%v == 1",
"background-image": "http://www.zingchart.com/package/examples/images/sunny.png",
"background-fit": "xy"
},
{
"rule": "%v == 2",
"background-image": "http://www.zingchart.com/package/examples/images/partly-cloudy.png",
"background-fit": "xy"
},
{
"rule": "%v == 3",
"background-image": "http://www.zingchart.com/package/examples/images/cloudy.png",
"background-fit": "xy"
}
],
"hover-state": {
"background-color": "#66CCFF"
}
},
"scale-x": {
"labels": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
"line-color": "none",
"guide": {
"line-style": "solid"
},
"tick": {
"visible": false
},
"item": {
"font-size": 10
}
},
"scale-y": {
"labels": ["San Diego", "Orange County", "Los Angeles"],
"line-color": "none",
"guide": {
"line-style": "solid"
},
"tick": {
"visible": false
},
"item": {
"font-size": 10
}
},
"plotarea": {
"margin-left": "dynamic"
},
"series": [{
"values": [1, 3, 1, 2, 3, 2, 3],
"data-weather": ["sunny", "cloudy", "sunny", "partly cloudy", "cloudy", "partly cloudy", "cloudy"]
},
{
"values": [2, 2, 1, 1, 3, 3, 2],
"data-weather": ["partly cloudy", "partly cloudy", "sunny", "sunny", "cloudy", "cloudy", "partly cloudy"]
},
{
"values": [1, 3, 3, 2, 1, 1, 3],
"data-weather": ["sunny", "cloudy", "cloudy", "partly cloudy", "sunny", "sunny", "cloudy"]
}
]
};
zingchart.render({
id: 'myChart',
data: myConfig,
height: 300,
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 = {
"type": "heatmap",
"title": {
"text": "%y"
},
"plot": {
"tooltip": {
"text": "%kl will be<br>%data-weather<br>in %y!",
"background-color": "white",
"alpha": 0.7,
"font-family": "Georgia",
"font-color": "#006699"
},
"aspect": "none",
"background-color": "none",
"background-repeat": false,
"rules": [{
"rule": "%v == 1",
"background-image": "http://www.zingchart.com/package/examples/images/sunny.png",
"background-fit": "xy"
},
{
"rule": "%v == 2",
"background-image": "http://www.zingchart.com/package/examples/images/partly-cloudy.png",
"background-fit": "xy"
},
{
"rule": "%v == 3",
"background-image": "http://www.zingchart.com/package/examples/images/cloudy.png",
"background-fit": "xy"
}
],
"hover-state": {
"background-color": "#66CCFF"
}
},
"scale-x": {
"labels": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
"line-color": "none",
"guide": {
"line-style": "solid"
},
"tick": {
"visible": false
},
"item": {
"font-size": 10
}
},
"scale-y": {
"labels": ["San Diego", "Orange County", "Los Angeles"],
"line-color": "none",
"guide": {
"line-style": "solid"
},
"tick": {
"visible": false
},
"item": {
"font-size": 10
}
},
"plotarea": {
"margin-left": "dynamic"
},
"series": [{
"values": [1, 3, 1, 2, 3, 2, 3],
"data-weather": ["sunny", "cloudy", "sunny", "partly cloudy", "cloudy", "partly cloudy", "cloudy"]
},
{
"values": [2, 2, 1, 1, 3, 3, 2],
"data-weather": ["partly cloudy", "partly cloudy", "sunny", "sunny", "cloudy", "cloudy", "partly cloudy"]
},
{
"values": [1, 3, 3, 2, 1, 1, 3],
"data-weather": ["sunny", "cloudy", "cloudy", "partly cloudy", "sunny", "sunny", "cloudy"]
}
]
};
zingchart.render({
id: 'myChart',
data: myConfig,
height: 300,
width: "100%"
});