Highcharts Demo

author(s): Torstein Hønsi

HTML

<script src="https://code.highcharts.com/highcharts.src.js"></script>

<div id="container"></div>

JavaScript

Highcharts.chart('container', {

  chart: {
    events: {
      load: function() {
        this.series.forEach(function(s) {
          s.data.forEach(function(d) {
            if (d.y === null) {
              d.setVisible(false)
              }
            });
          })
        }
    },
    plotBackgroundColor: '#FFF',
    plotBorderWidth: null,
    plotShadow: false,
    type: 'pie',
    height: '75%',
    dataBinding: {
      scope: {
        elementName: 'height'
      },
      value: {
        type: 'text',
        text: '100%',
        rcParameter: {
          id: '001',
          elementName: 'text',
          type: 'text',
          label: 'Hoogte (%)'
        }

      }
    }
  },
  exporting: {
    enabled: false
  },
  credits: {
    enabled: false
  },
  colors: ['#951b81', '#a877b2', '#e5006d', '#0967b1', '#21bbef', '#0c3274', '#e4022e', '#f07300', '#ffcd00', '#166f34', '#97be0c', '#4f4e4d'],
  title: {
    text: 'Browser market shares in January, 2018'
  },
  tooltip: {
    pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
  },
  accessibility: {
    point: {
      valueSuffix: '%'
    }
  },
  legend: {
    layout: 'vertical'
  },
  plotOptions: {
    pie: {
      allowPointSelect: true,
      cursor: 'pointer',
      dataLabels: {
        enabled: true,
        format: '{point.percentage:.1f}%'
      },
      showInLegend: true,
      Size: '60%',
      innerSize: '60%'
    },
    dataLabels: {

    }
  },
  series: [{
    name: 'Brands',
    colorByPoint: true,
    dataBinding: {
      scope: {
        elementName: 'data',
        startPeriodOffset: '0p',
        rubric: 'WOmz',
        displayChildren: 'false'
      },
      value: [{
          elementName: 'name',
          type: 'rubricName'
        },
        {
          elementName: 'y',
          type: 'rubricValue',
          benchmarkMeasure: 'average',
          valueRescaling: '0',
          unitRescaling: 'K',
          presentation: 'single',
         ...