$(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: [[1172707200000,1.70275],[1172793600000,1.70308],[1172880000000,1.70405],[1172966400000,1.70405],[1173052800000,1.70405],[1173139200000,1.68975],[1173225600000,1.69733],[1173312000000,1.69764],[1173398400000,1.69764],[1173484800000,1.69764],[1173571200000,1.69764],[1173657600000,1.69764],[1173744000000,1.71236],[1173830400000,1.71393],[1173916800000,1.70572],[1174003200000,1.7148],[1174089600000,1.72852],[1174176000000,1.72852],[1174262400000,1.72852],[1174348800000,1.7365],[1174435200000,1.73407],[1174521600000,1.73265],[1174608000000,1.74273],[1174694400000,1.73636],[1174780800000,1.73636],[1174867200000,1.73636],[1174953600000,1.73092],[1175040000000,1.74144],[1175126400000,1.73569],[1175212800000,1.74245],[1175299200000,1.73932]], 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: [[1172707200000, 1.702753],[1172707200000, 1.702753],[1172793600000, 1.703079],[1172880000000, 1.704047],[1172966400000, 1.704047],[1173052800000, 1.704047],[1173139200000, 1.689748],[1173225600000, 1.697327],[1173312000000, 1.697636],[1173398400000, 1.697636],[1173484800000, 1.697636],[1173571200000, 1.697636],[1173657600000, 1.697636],[1173744000000, 1.712359],[1173830400000, 1.713935],[1173916800000, 1.705717],[1174003200000, 1.714796],[1174089600000, 1.728519],[1174176000000, 1.728519],[1174262400000, 1.728519],[1174348800000, 1.736505],[1174435200000, 1.734067],[1174521600000, 1.732646],[1174608000000, 1.742725],[1174694400000, 1.736361],[1174780800000, 1.736361],[1174867200000, 1.736361],[1174953600000, 1.730918],[1175040000000, 1.741438],[1175126400000, 1.735694],[1175212800000, 1.742450],[1175299200000, 1.739317]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });