$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1262736000000,2.81817],[1262822400000,2.79796],[1262908800000,2.79796],[1262995200000,2.79796],[1263081600000,2.79796],[1263168000000,2.79796],[1263254400000,2.86046],[1263340800000,2.8362],[1263427200000,2.87361],[1263513600000,2.8558],[1263600000000,2.84683],[1263686400000,2.84683],[1263772800000,2.84683],[1263859200000,2.85801],[1263945600000,2.83628],[1264032000000,2.81203],[1264118400000,2.77846],[1264204800000,2.75973],[1264291200000,2.75973],[1264377600000,2.75973],[1264464000000,2.78608],[1264550400000,2.75653],[1264636800000,2.7595],[1264723200000,2.75172],[1264809600000,2.76089],[1264896000000,2.76089]], 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: [[1262736000000, 2.818166],[1262736000000, 2.818166],[1262822400000, 2.797957],[1262908800000, 2.797957],[1262995200000, 2.797957],[1263081600000, 2.797957],[1263168000000, 2.797957],[1263254400000, 2.860458],[1263340800000, 2.836202],[1263427200000, 2.873610],[1263513600000, 2.855803],[1263600000000, 2.846834],[1263686400000, 2.846834],[1263772800000, 2.846834],[1263859200000, 2.858012],[1263945600000, 2.836279],[1264032000000, 2.812033],[1264118400000, 2.778459],[1264204800000, 2.759733],[1264291200000, 2.759733],[1264377600000, 2.759733],[1264464000000, 2.786085],[1264550400000, 2.756530],[1264636800000, 2.759502],[1264723200000, 2.751721],[1264809600000, 2.760894],[1264896000000, 2.760894]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });