Highcharts Demo

author(s): Torstein Hønsi

by Nhi Nguyen

HTML

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

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

CSS

@import 'https://code.highcharts.com/css/highcharts.css';

#container {
	height: 400px;
	max-width: 800px;
	margin: 0 auto;
}

.highcharts-tooltip-box {
	fill: black;
	fill-opacity: 0.6;
	stroke-width: 0;
}

.highcharts-tooltip text {
	fill: white;
	text-shadow: 0 0 3px black;
}

JavaScript

Highcharts.chart('container', {

    chart: {
        styledMode: true
    },

    title: {
        text: 'Tooltip background and border by CSS'
    },
subtitle:{
		tex
},
    legend: {
        borderWidth: 2
    },

    xAxis: {
        categories: ['Jan', 'Feb', 'Mar', 'Apr']
    },

    series: [{
        data: [1, 4, 3, 2, 5]
    }, {
        data: [2, 1, 4, 3, 2]
    }]
});