$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс SEK, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс SEK', data: [[1480550400000,2.78676],[1480636800000,2.78202],[1480723200000,2.81288],[1480809600000,2.81288],[1480896000000,2.81288],[1480982400000,2.85279],[1481068800000,2.85759],[1481155200000,2.85666],[1481241600000,2.85271],[1481328000000,2.81973],[1481414400000,2.81973],[1481500800000,2.81973],[1481587200000,2.8458],[1481673600000,2.85053],[1481760000000,2.8704],[1481846400000,2.80489],[1481932800000,2.80803],[1482019200000,2.80803],[1482105600000,2.80803],[1482192000000,2.81288],[1482278400000,2.82054],[1482364800000,2.8575],[1482451200000,2.85946],[1482537600000,2.84452],[1482624000000,2.84452],[1482710400000,2.84452],[1482796800000,2.85522],[1482883200000,2.85522],[1482969600000,2.92031],[1483056000000,2.97354],[1483142400000,2.97354]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1480550400000, 2.786765],[1480550400000, 2.786765],[1480636800000, 2.782021],[1480723200000, 2.812880],[1480809600000, 2.812880],[1480896000000, 2.812880],[1480982400000, 2.852791],[1481068800000, 2.857588],[1481155200000, 2.856661],[1481241600000, 2.852713],[1481328000000, 2.819731],[1481414400000, 2.819731],[1481500800000, 2.819731],[1481587200000, 2.845803],[1481673600000, 2.850531],[1481760000000, 2.870400],[1481846400000, 2.804891],[1481932800000, 2.808030],[1482019200000, 2.808030],[1482105600000, 2.808030],[1482192000000, 2.812878],[1482278400000, 2.820542],[1482364800000, 2.857503],[1482451200000, 2.859461],[1482537600000, 2.844522],[1482624000000, 2.844522],[1482710400000, 2.844522],[1482796800000, 2.855223],[1482883200000, 2.855223],[1482969600000, 2.920307],[1483056000000, 2.973542],[1483142400000, 2.973542]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });