FusionCharts - Show all five-summary numbers in Box And Whisker 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>
<!-- Adding cosmetics to the quartiles and boxes in Box and Whisker chart using attributes:
    # upperQuartileColor - This attribute sets the color for the upper quartile
    # upperQuartileThickness - This attribute sets the thickness of the upper quartile
    # upperQuartileAlpha - This attribute sets the transparency of the upper quartile
    # upperBoxColor - This attribute sets the color of the upper box
    # upperBoxAlpha - This attribute sets the transparency of the upper box
    # upperBoxBorderColor - This attribute sets the color for the border of the upper box
    # upperBoxBorderAlpha - This attribute sets the transparency of the upper box border
    # upperBoxBorderThickness This attribute sets the border thickness of the upper border 
    # lowerQuartileColor - This attribute sets the color for the lower quartile
    # lowerQuartileThickness - This attribute sets the thickness of the lower quartile
    # lowerQuartileAlpha This attribute sets the transparency of the lower quartile
    # lowerBoxColor - This attribute sets the color of the lower box
    # lowerBoxAlpha - This attribute sets the transparency of the lower box
    # lowerBoxBorderColor - This attribute sets the color for the border of lower box
    # lowerBoxBorderAlpha - This attribute sets the transparency for the border of lower quartile
    # lowerBoxBorderThickness - This attribute sets the thickness for the border of the lower quartile
-->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function() {
  var salaryDistribution = new FusionCharts({
    type: 'boxandwhisker2d',
    renderAt: 'chart-container',
    width: '700',
    height: '450',
    dataFormat: 'json',
    dataSource: {
      "chart": {
        "caption": "Distribution of annual salaries",
        "subcaption": "By Gender",
        "xAxisName": "Pay Grades",
        "YAxisName": "Salaries (In USD)",
        "numberPrefix": "$",
        "theme": "fusion",
        "showValues": "1",
        //The color of the upper quartile set to Red
        "upperQuartileColor": "ff0000",
        //The thickness of the upper quartile set to 5
        "upperQuartileThickness": "5",
        //The transparency of the upper quartile set to 70
        "upperQuartileAlpha": "70",
        //"upperBoxColor": "ff0000",
        //"upperBoxAlpha": "70",
        //"upperBoxBorderColor": "ff0000",
        //"upperBoxBorderAlpha": "70",
        //"upperBoxBorderThickness": "5",
        //"lowerQuartileColor": "ff0000",
        //"lowerQuartileThickness": "5",
        //"lowerQuartileAlpha": "70",
        //"lowerBoxColor": "ff0000",
        //"lowerBoxAlpha": "70",
        //"lowerBoxBorderColor": "ff0000",
        //"lowerBoxBorderAlpha": "70",
        //"lowerBoxBorderThickness": "5"
      },
      "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"
        }]
      }, {
        "seriesname": "Female",
        "lowerboxcolor":...