$(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: [[1496275200000,7.07778],[1496361600000,7.04599],[1496448000000,7.03144],[1496534400000,7.03144],[1496620800000,7.03144],[1496707200000,7.03144],[1496793600000,7.03667],[1496880000000,7.01325],[1496966400000,6.98038],[1497052800000,6.96777],[1497139200000,6.96777],[1497225600000,6.96777],[1497312000000,6.98201],[1497398400000,6.95317],[1497484800000,6.94464],[1497571200000,6.89415],[1497657600000,6.88855],[1497744000000,6.88855],[1497830400000,6.88855],[1497916800000,6.91829],[1498003200000,6.86534],[1498089600000,6.8468],[1498176000000,6.85536],[1498262400000,6.87253],[1498348800000,6.87253],[1498435200000,6.87253],[1498521600000,6.91725],[1498608000000,6.97804],[1498694400000,6.97804],[1498780800000,7.01047]], 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: [[1496275200000, 7.077778],[1496275200000, 7.077778],[1496361600000, 7.045991],[1496448000000, 7.031444],[1496534400000, 7.031444],[1496620800000, 7.031444],[1496707200000, 7.031444],[1496793600000, 7.036675],[1496880000000, 7.013245],[1496966400000, 6.980376],[1497052800000, 6.967766],[1497139200000, 6.967766],[1497225600000, 6.967766],[1497312000000, 6.982013],[1497398400000, 6.953174],[1497484800000, 6.944640],[1497571200000, 6.894151],[1497657600000, 6.888549],[1497744000000, 6.888549],[1497830400000, 6.888549],[1497916800000, 6.918291],[1498003200000, 6.865341],[1498089600000, 6.846797],[1498176000000, 6.855360],[1498262400000, 6.872533],[1498348800000, 6.872533],[1498435200000, 6.872533],[1498521600000, 6.917249],[1498608000000, 6.978045],[1498694400000, 6.978045],[1498780800000, 7.010469]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });