$(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: [[1414800000000,1.75982],[1414886400000,1.75982],[1414972800000,1.75982],[1415059200000,1.75036],[1415145600000,1.75334],[1415232000000,1.82354],[1415318400000,1.88975],[1415404800000,1.96822],[1415491200000,1.96822],[1415577600000,1.96822],[1415664000000,1.99152],[1415750400000,2.13873],[1415836800000,2.12901],[1415923200000,2.10208],[1416009600000,2.07673],[1416096000000,2.07673],[1416182400000,2.07673],[1416268800000,null],[1416355200000,2.06266],[1416441600000,2.05886],[1416528000000,2.05032],[1416614400000,2.04],[1416700800000,2.04],[1416787200000,2.04],[1416873600000,2.02704],[1416960000000,2.01576],[1417046400000,2.00757],[1417132800000,2.0182],[1417219200000,2.01717],[1417305600000,2.01717]], 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: [[1414800000000, 1.759818],[1414800000000, 1.759818],[1414886400000, 1.759818],[1414972800000, 1.759818],[1415059200000, 1.750358],[1415145600000, 1.753345],[1415232000000, 1.823539],[1415318400000, 1.889749],[1415404800000, 1.968219],[1415491200000, 1.968219],[1415577600000, 1.968219],[1415664000000, 1.991520],[1415750400000, 2.138728],[1415836800000, 2.129013],[1415923200000, 2.102083],[1416009600000, 2.076730],[1416096000000, 2.076730],[1416182400000, 2.076730],[1416355200000, 2.062664],[1416441600000, 2.058862],[1416528000000, 2.050325],[1416614400000, 2.040002],[1416700800000, 2.040002],[1416787200000, 2.040002],[1416873600000, 2.027035],[1416960000000, 2.015763],[1417046400000, 2.007569],[1417132800000, 2.018201],[1417219200000, 2.017173],[1417305600000, 2.017173]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });