Show all five-summary numbers in Box And Whisker Chart in JavaScript

Created using FusionCharts Suite XT - www.fusioncharts.com

by Nabajeet 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>
<!-- Showing all five-summary numbers in Box And Whisker chart using attributes:

    # showQ1Values - This attribute allows you to show or hide the lower quartile value of the set of data provided. Boolean (0/1). Default 0.
    # showQ3Values - This attribute allows you to show or hide the upper quartile value of the set of data provided. Boolean (0/1). Default 0.

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

JavaScript

FusionCharts.ready(function () {
    var salaryDistribution = new FusionCharts({
        type: 'boxandwhisker2d',
        renderAt: 'chart-container',
        width: '500',
        height: '550',
        dataFormat: 'json',
        dataSource:
        {
            "chart": {
                "caption": "Distribution of annual salaries",
                "subcaption": "By Gender",                
                "xAxisName": "Pay Grades",
                "YAxisName": "Salaries (In USD)",
                //change the y axis max value here
                "YAxisMaxValue":"68000",                    
                "numberPrefix": "$",
                "theme": "fint",
                "showValues": "1",
                "showQ1Values": "0",	
                "showQ3Values": "0"
            },
            "categories": [
                {
                    "category": [
                        {
                            "label": "Grade 1"
                        }, 
                        {
                            "label": "Grade 2"
                        }, 
                        {
                            "label": "Grade 3"
                        }
                    ]
                }
            ],
            "dataset": [
                {
                    "seriesname": "Male",
                    "lowerboxcolor": "#008ee4",
                    "upperboxcolor": "#6baa01",
                    "data": [
                        {
                            "value": "2400,2000,2500,2800,3500,4000, 3700, 3750, 3880, 5000,5500,7500,8000,8200, 8400, 8500, 8550, 8800, 8700, 9000, 14000"
                        }, 
                        {
                            "value": "7500,9000,12000,13000,14000,16500,17000, 18000, 19000, 19500"
                        }, 
                        {
                            "value": "15000,19000,25000,32000,50000,65000"
                        }
                    ]
                }, {
                   ...