FusionCharts - Mapping values by Percentage in Heatmap Chart

Created using FusionCharts Suite XT - www.fusioncharts.com

by Moonmi Sonowal

HTML

<script src="http://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.powercharts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.fint.js"></script>
<!-- Mapping the display values by Percentage in a simple numeric based Heatmap chart with pre defined rows and columns showing average temperature in various seasons in top 4 US Cities using attribute:

    # mapByPercent - Allows you to display the data values in percentage.

-->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function () {
    var tempChart = new FusionCharts({
        type: 'heatmap',
        renderAt: 'chart-container',
        width: '550',
        height: '300',
        dataFormat: 'json',
        dataSource: {
            "chart": {
                "theme": "fint",
                "caption": "Distribution of Marks for Students",
                "subcaption": "Bell Curve Grading",
                "xAxisName":"Subjects",
                "yAxisName":"Student Name",
                "showPlotBorder": "1",
                "valueFontColor": "#ffffff",
                "plotTooltext": "Grading : $value",
                "showLabels":"0"
            },
            "rows": {
                "row": [
                    {
                        "id": "JA",
                        "label": "Jacob"
                    },
                    {
                        "id": "EM",
                        "label": "Emma"
                    },
                    {
                        "id": "JY",
                        "label": "Jayden"
                    },
                    {
                        "id": "WL",
                        "label": "William"
                    }
                ]
            },
            "columns": {
                "column": [
                    {
                        "id": "EN",
                        "label": "English"
                    },
                    {
                        "id": "MT",
                        "label": "Maths"
                    },
                    {
                        "id": "PY",
                        "label": "Physics"
                    },
                    {
                        "id": "HS",
                        "label": "History"
                    },
                    {
                        "id": "EC",
                        "label": "Economics"
                    }                
                ]
            },
            "dataset": [
            ...