Highcharts Demo

author(s): Torstein Hønsi

HTML

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

<script src="https://code.highcharts.com/modules/data.js"></script>
<div id="container" style="height: 400px"></div>

JavaScript

Highcharts.chart('container', {
  title: {
    text: 'Chart Title'
  },
  subtitle: {
    text: ''
  },
  xAxis: {},
  yAxis: {},
  series: [
    {
      data: [],
      turboThreshold: 0,
      _colorIndex: 0,
      _symbolIndex: 0
    }
  ],
  plotOptions: {
    series: {
      animation: false,
      dataLabels: {
        enabled: true,
        format: '{point.label}'
      }
    }
  },
  data: {
    csv: '"Column 1";"Column 2"\n"t1";1\n"t2";2\n"t3";3\n"t4";4',
    seriesMapping: [
      {
        x: 0,
        y: 1,
        label: 0
      }
    ]
  }
});