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",
        "showplotborder": "1",
        "xAxisLabelsOnTop": "1",
        //Configuring the tooltip using macros
        "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>",
        "showValues": "1",
        "toolTipColor": "#ffffff",
        "toolTipBorderThickness": "0",
        "toolTipBgColor": "#000000",
        "toolTipBgAlpha": "80",
        "toolTipBorderRadius": "2",
        "toolTipPadding": "5",
        "theme": "fusion",

      },
      "rows": {
        "row": [{
          "id": "SGS5",
          "label": "Samsung Galaxy S5"
        }, {
          "id": "HTC1M8",
          "label": "HTC One (M8)"
        }, {
          "id": "IPHONES5",
          "label": "Apple iPhone 5S"
        }, {
          "id": "LUMIA",
          "label": "Nokia Lumia 1520"
        }]
      },
      "columns": {
        "column": [{
          "id": "processor",
          "label": "Processor"
        }, {
          "id": "screen",
          "label": "Screen Size"
        }, {
          "id": "price",
          "label": "Price"
        }, {
          "id": "backup",
          "label": "Battery Backup"
        }, {
          "id": "cam",
          "label": "Camera"
        }]
      },
      "dataset": [{
        "data": [{
          "rowid": "SGS5",
          "columnid": "processor",
          "value": "8.7",
          "tllabel": "Quad Core 2.5 GHz",
          "trlabel": "OS :...