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: '350',
    dataFormat: 'json',
    dataSource: {
      "chart": {
        "caption": "Top Smartphone Ratings",
        "subcaption": "By Features",
        "xAxisName": "Features",
        "yAxisName": "Model",
        "showValues": "1",
        "showplotborder": "1",
        "xAxisLabelsOnTop": "1",
        "plottooltext": "<div id='nameDiv' style='font-size: 12px; border-bottom: 1px dashed #666666; font-weight:bold; padding-bottom: 3px; margin-bottom: 5px; display: inline-block; color: #888888;' >$rowLabel :</div>{br}Rating : <b>$dataValue</b>{br}$columnLabel : <b>$tlLabel</b>{br}<b>$trLabel</b>",

        "toolTipColor": "#ffffff",
        "toolTipBorderThickness": "0",
        "toolTipBgColor": "#000000",
        "toolTipBgAlpha": "80",
        "toolTipBorderRadius": "2",
        "toolTipPadding": "5",
        "theme": "fusion"

      },
      "dataset": [{
        "data": [{
          "rowid": "Samsung Galaxy S5",
          "columnid": "Processor",
          "value": "8.7",
          "tllabel": "Quad Core 2.5 GHz",
          "trlabel": "OS : Android 4.4 Kitkat"
        }, {
          "rowid": "Samsung Galaxy S5",
          "columnid": "Screen Size",
          "value": "8.5",
          "tllabel": "5.1 inch",
          "trlabel": "AMOLED screen"
        }, {
          "rowid": "Samsung Galaxy S5",
          "columnid": "Price",
          "value": "9.3",
          "tllabel": "$600"
        }, {
          "rowid": "Samsung Galaxy S5",
          "columnid": "Battery Backup",
          "value": "9.7",
          "tllabel": "29 Hrs",
          "trlabel": "Battery : 2800 MAH"
        }, {
          "rowid": "Samsung Galaxy S5",
          "columnid": "Camera",
          "value": "8",
          "tllabel": "16 MP",
          "trlabel": "Front Camera : 2.1 MP"
        }, {
          "rowid": "HTC One (M8)",
         ...