$(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: [[1388534400000,2.65965],[1388620800000,2.65965],[1388707200000,2.65965],[1388793600000,2.61598],[1388880000000,2.61598],[1388966400000,2.61598],[1389052800000,2.61598],[1389139200000,2.61598],[1389225600000,2.6015],[1389312000000,2.60569],[1389398400000,2.60128],[1389484800000,2.60128],[1389571200000,2.60128],[1389657600000,2.62713],[1389744000000,2.63185],[1389830400000,2.61582],[1389916800000,2.60676],[1390003200000,2.6072],[1390089600000,2.6072],[1390176000000,2.6072],[1390262400000,2.60794],[1390348800000,2.5957],[1390435200000,2.60343],[1390521600000,2.61562],[1390608000000,2.59981],[1390694400000,2.59981],[1390780800000,2.59981],[1390867200000,2.60086],[1390953600000,2.60293],[1391040000000,2.58174],[1391126400000,2.56421]], 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: [[1388534400000, 2.659648],[1388534400000, 2.659648],[1388620800000, 2.659648],[1388707200000, 2.659648],[1388793600000, 2.615982],[1388880000000, 2.615982],[1388966400000, 2.615982],[1389052800000, 2.615982],[1389139200000, 2.615982],[1389225600000, 2.601500],[1389312000000, 2.605693],[1389398400000, 2.601281],[1389484800000, 2.601281],[1389571200000, 2.601281],[1389657600000, 2.627135],[1389744000000, 2.631853],[1389830400000, 2.615821],[1389916800000, 2.606755],[1390003200000, 2.607202],[1390089600000, 2.607202],[1390176000000, 2.607202],[1390262400000, 2.607943],[1390348800000, 2.595696],[1390435200000, 2.603434],[1390521600000, 2.615622],[1390608000000, 2.599814],[1390694400000, 2.599814],[1390780800000, 2.599814],[1390867200000, 2.600858],[1390953600000, 2.602926],[1391040000000, 2.581741],[1391126400000, 2.564213]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });