Teilportfolio XY - Regelbare Verbraucher

by Jens Kühn

HTML

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

<div id="container" style="height: 400px"></div>

JavaScript

$(function () {
    var chart;
    $(document).ready(function() {
        chart = new Highcharts.Chart({
            chart: {
                renderTo: 'container',
                type: 'spline',
                animation: false,
                plotBackgroundColor: '#fafafa',
                width: 485,
                height: 275
                
            },
            credits: {
                enabled: false
            },
            title: {
                text: 'EDM-Werte'
            },
            subtitle: {
                text: 'Teilportfolio XY - Regelbare Verbraucher'
            },
            xAxis: {
                 type: 'datetime',plotBands: [
                    {from: Date.UTC(2012, 8, 24, 12, 0, 0),to: Date.UTC(2012, 8, 25, 12, 0, 0),color: '#e1eed2'},
                    {from: Date.UTC(2012, 8, 26, 12, 0, 0),to: Date.UTC(2012, 8, 27, 12, 0, 0),color: '#e1eed2'},
                    {from: Date.UTC(2012, 8, 28, 12, 0, 0),to: Date.UTC(2012, 8, 29, 12, 0, 0),color: '#e1eed2'},
                    {from: Date.UTC(2012, 8, 30, 12, 0, 0),to: Date.UTC(2012, 9, 1, 12, 0, 0),color: '#e1eed2'},
                    {from: Date.UTC(2012, 9, 2, 12, 0, 0),to: Date.UTC(2012, 9, 3, 12, 0, 0),color: '#e1eed2'}
                ],
                dateTimeLabelFormats: {
                    day: '%d. %m'
                }
            },
            yAxis: {
                labels: {
                    formatter: function() {
                        return this.value;
                    }
                },
                gridLineColor: '#dadada'
            },
            tooltip: {
                crosshairs: true,
                shared: true
            },
            plotOptions: {
                spline: {
                    lineWidth: 4,
                    states: {
                        hover: {
                            lineWidth: 5
                        }
                    },
                    marker: {
                       ...