$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1435708800000,2.6735],[1435795200000,2.66679],[1435881600000,2.64371],[1435968000000,2.63524],[1436054400000,2.63524],[1436140800000,2.63524],[1436227200000,2.62748],[1436313600000,2.64062],[1436400000000,2.67053],[1436486400000,2.67794],[1436572800000,2.75418],[1436659200000,2.75418],[1436745600000,2.75418],[1436832000000,2.72564],[1436918400000,2.69814],[1437004800000,2.72221],[1437091200000,2.69733],[1437177600000,2.6994],[1437264000000,2.6994],[1437350400000,2.6994],[1437436800000,2.68779],[1437523200000,2.68387],[1437609600000,2.69666],[1437696000000,2.70167],[1437782400000,2.68426],[1437868800000,2.68426],[1437955200000,2.68426],[1438041600000,2.68426],[1438128000000,2.69342],[1438214400000,2.70599],[1438300800000,2.6474]], 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.673500],[1435708800000, 2.673500],[1435795200000, 2.666790],[1435881600000, 2.643712],[1435968000000, 2.635237],[1436054400000, 2.635237],[1436140800000, 2.635237],[1436227200000, 2.627476],[1436313600000, 2.640620],[1436400000000, 2.670526],[1436486400000, 2.677937],[1436572800000, 2.754181],[1436659200000, 2.754181],[1436745600000, 2.754181],[1436832000000, 2.725642],[1436918400000, 2.698145],[1437004800000, 2.722209],[1437091200000, 2.697328],[1437177600000, 2.699403],[1437264000000, 2.699403],[1437350400000, 2.699403],[1437436800000, 2.687794],[1437523200000, 2.683869],[1437609600000, 2.696661],[1437696000000, 2.701669],[1437782400000, 2.684256],[1437868800000, 2.684256],[1437955200000, 2.684256],[1438041600000, 2.684256],[1438128000000, 2.693416],[1438214400000, 2.705989],[1438300800000, 2.647400]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });