Highcharts Demo

author(s): Torstein Hønsi

by Black Label

HTML

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

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

JavaScript

(function(H) {
  H.wrap(H.Legend.prototype, 'getAllItems', function(proceed) {
    var allItems = proceed.apply(this, Array.prototype.slice.call(arguments, 1));

    return allItems.filter(function(item) {
      return item.y !== null;
    });
  });
}(Highcharts));

Highcharts.chart('container', {
  chart: {
    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',
         ...