Highcharts Demo

author(s): Torstein Hønsi

by Chris Hughes

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>

<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

JavaScript

Highcharts.chart('container', {
  chart: {
    type: 'column'
  },
  title: {
    text: 'QC Monthly Diagnostic Viewer'
  },
  xAxis: {
   
  },
  yAxis: {
    min: 0,
    title: {
      text: 'QC Events'
    }
  },
  tooltip: {
    pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b> ({point.percentage:.0f}%)<br/>',
    shared: true
  },
  plotOptions: {
    column: {
      stacking: 'count' //percent
    }
  },
  series: [{
    name: 'Good',
    data: [597,597,597,597,597,597,606,597,597,606,597,597,607,607,607,607,606,0,0,0,0,0,0,0,0,0,0,0,0]
  }, {
    name: 'Bad',
    data: [16,17,16,16,17,16,15,16,16,16,16,16,15,14,14,19,16,0,0,0,0,0,0,0,0,0,0,0,0]
  }, {
    name: 'Suspect',
    data: [1,1,1,1,1,1,1,1,2,1,1,1,1,1,0,20,1,0,0,0,0,0,0,0,0,0,0,0,0]
  }]
});