$(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: [[1430438400000,2.54125],[1430524800000,2.54125],[1430611200000,2.54125],[1430697600000,2.54125],[1430784000000,2.54125],[1430870400000,2.51851],[1430956800000,2.53708],[1431043200000,2.52033],[1431129600000,2.48576],[1431216000000,2.48576],[1431302400000,2.48576],[1431388800000,2.48576],[1431475200000,2.4901],[1431561600000,2.47488],[1431648000000,2.50121],[1431734400000,2.48713],[1431820800000,2.48713],[1431907200000,2.48713],[1431993600000,2.68457],[1432080000000,2.55123],[1432166400000,2.49008],[1432252800000,2.4858],[1432339200000,2.51549],[1432425600000,2.51549],[1432512000000,2.51549],[1432598400000,2.5102],[1432684800000,2.54815],[1432771200000,null],[1432857600000,2.47623],[1432944000000,2.47986],[1433030400000,2.47986]], 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: [[1430438400000, 2.541253],[1430438400000, 2.541253],[1430524800000, 2.541253],[1430611200000, 2.541253],[1430697600000, 2.541253],[1430784000000, 2.541253],[1430870400000, 2.518505],[1430956800000, 2.537085],[1431043200000, 2.520332],[1431129600000, 2.485759],[1431216000000, 2.485759],[1431302400000, 2.485759],[1431388800000, 2.485759],[1431475200000, 2.490102],[1431561600000, 2.474882],[1431648000000, 2.501211],[1431734400000, 2.487135],[1431820800000, 2.487135],[1431907200000, 2.487135],[1431993600000, 2.684571],[1432080000000, 2.551232],[1432166400000, 2.490075],[1432252800000, 2.485800],[1432339200000, 2.515492],[1432425600000, 2.515492],[1432512000000, 2.515492],[1432598400000, 2.510203],[1432684800000, 2.548148],[1432857600000, 2.476235],[1432944000000, 2.479857],[1433030400000, 2.479857]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });