Highcharts Demo

author(s): Torstein Hønsi

by AbhishekRohan

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/drilldown.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

JavaScript

$(function () {
var EUdata= {
                            
                                '16Q3': {
                                    name: 'EU-1',
                                    data: [
                                        ['16Q3', 2],
                                        ['16Q4', 3],
                                        ['18Q1', 4]
                                    ]
                                },
                                    '16Q32': {
                                    name: 'EU-2',
                                    color: Highcharts.getOptions().colors[1],
                                    data: [
                                        ['16Q3', 22],
                                        ['16Q4', 13],
                                        ['18Q1', 18]
                                    ]
                                },
                                    '16Q4': {
                                    name: 'EU-1',
                                   data: [
                                        ['16Q3', 2],
                                        //['16Q4', 3],
                                        ['18Q1', 4]
                                    ]
                                },
                                    '16Q42': {
                                    name: 'EU-2',
                                    color: 'red',      
                                    data: [
                                        ['16Q3', 17],
                                        ['16Q4', 8],
                                        ['18Q1', 20]
                                    ]
                                },
                                    '18Q1': {
                                    name: 'EU-1',
                                    data: [
                                        ['16Q3', 7],
                                        ['16Q4', 12],
                                        ['18Q1', 8]
                 ...