FusionCharts - Gallery Example - Heatmap Chart in Javascript.
Created using FusionCharts Suite XT - www.fusioncharts.com
by FusionCharts
HTML
<script src="https://cdn.fusioncharts.com/fusioncharts/latest/fusioncharts.js"></script>
<script src="https://cdn.fusioncharts.com/fusioncharts/latest/themes/fusioncharts.theme.fusion.js"></script>
<!--
Heatmap chart showing score for various smartphones, by features.
-->
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function() {
var salesHMChart = new FusionCharts({
type: 'heatmap',
renderAt: 'chart-container',
width: '700',
height: '400',
dataFormat: 'json',
dataSource: {
"chart": {
"theme": "fusion",
"caption": "Top Smartphone Ratings",
"subcaption": "By Features",
"xAxisName": "Features",
"yAxisName": "Model",
"showValues": "1",
"showPlotBorder": "1"
},
"rows": {
"row": [{
"id": "IPHONES5",
"label": "Apple iPhone 5S"
}, {
"id": "SGS5",
"label": "Samsung Galaxy S5"
}, {
"id": "HTC1M8",
"label": "HTC One (M8)"
}, {
"id": "LUMIA",
"label": "Nokia Lumia 1520"
}]
},
"columns": {
"column": [{
"id": "price",
"label": "Price"
}, {
"id": "processor",
"label": "Processor"
}, {
"id": "screen",
"label": "Screen Size"
}, {
"id": "backup",
"label": "Battery Backup"
}, {
"id": "cam",
"label": "Camera"
}]
},
"dataset": [{
"data": [{
"rowid": "IPHONES5",
"columnid": "processor",
"value": "9.1",
"tlLabel": "Dual Core",
"trLabel": "OS : iOS 7"
}, {
"rowid": "IPHONES5",
"columnid": "screen",
"value": "8.6",
"tlLabel": "4 inch",
"trLabel": "Retina LCD screen"
}, {
"rowid": "IPHONES5",
"columnid": "price",
"value": "7.2",
"tlLabel": "$649"
}, {
"rowid": "IPHONES5",
"columnid": "backup",
"value": "8.4",
"tlLabel": "10 Hrs",
"trLabel": "Battery : 1560 MAH"
}, {
"rowid": "IPHONES5",
"columnid": "cam",
"value": "9.5",
"tlLabel":...