$(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: [[1435708800000,2.55049],[1435795200000,2.52185],[1435881600000,2.48732],[1435968000000,2.4883],[1436054400000,2.4883],[1436140800000,2.4883],[1436227200000,2.49837],[1436313600000,2.54274],[1436400000000,2.57878],[1436486400000,2.57949],[1436572800000,2.60503],[1436659200000,2.60503],[1436745600000,2.60503],[1436832000000,2.58487],[1436918400000,2.57898],[1437004800000,2.60104],[1437091200000,2.57503],[1437177600000,2.56564],[1437264000000,2.56564],[1437350400000,2.56564],[1437436800000,2.5587],[1437523200000,2.55444],[1437609600000,2.5574],[1437696000000,2.56728],[1437782400000,2.56158],[1437868800000,2.56158],[1437955200000,2.56158],[1438041600000,2.56158],[1438128000000,2.57028],[1438214400000,2.56919],[1438300800000,2.4997]], 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: [[1435708800000, 2.550487],[1435708800000, 2.550487],[1435795200000, 2.521855],[1435881600000, 2.487318],[1435968000000, 2.488301],[1436054400000, 2.488301],[1436140800000, 2.488301],[1436227200000, 2.498372],[1436313600000, 2.542737],[1436400000000, 2.578776],[1436486400000, 2.579488],[1436572800000, 2.605029],[1436659200000, 2.605029],[1436745600000, 2.605029],[1436832000000, 2.584865],[1436918400000, 2.578982],[1437004800000, 2.601037],[1437091200000, 2.575030],[1437177600000, 2.565639],[1437264000000, 2.565639],[1437350400000, 2.565639],[1437436800000, 2.558701],[1437523200000, 2.554436],[1437609600000, 2.557396],[1437696000000, 2.567276],[1437782400000, 2.561580],[1437868800000, 2.561580],[1437955200000, 2.561580],[1438041600000, 2.561580],[1438128000000, 2.570279],[1438214400000, 2.569185],[1438300800000, 2.499704]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });