$(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: [[1517443200000,8.35714],[1517529600000,8.35822],[1517616000000,8.38608],[1517702400000,8.38608],[1517788800000,8.38608],[1517875200000,8.29905],[1517961600000,8.12998],[1518048000000,8.04429],[1518134400000,7.97035],[1518220800000,7.9252],[1518307200000,7.9252],[1518393600000,7.9252],[1518480000000,7.88405],[1518566400000,7.88121],[1518652800000,7.88928],[1518739200000,8.04946],[1518825600000,8.08747],[1518912000000,8.08747],[1518998400000,8.08747],[1519084800000,8.08533],[1519171200000,8.05653],[1519257600000,7.98953],[1519344000000,7.94696],[1519430400000,7.96042],[1519516800000,7.96042],[1519603200000,7.96042],[1519689600000,7.9795],[1519776000000,7.95512]], 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: [[1517443200000, 8.357140],[1517443200000, 8.357140],[1517529600000, 8.358222],[1517616000000, 8.386080],[1517702400000, 8.386080],[1517788800000, 8.386080],[1517875200000, 8.299051],[1517961600000, 8.129983],[1518048000000, 8.044286],[1518134400000, 7.970345],[1518220800000, 7.925197],[1518307200000, 7.925197],[1518393600000, 7.925197],[1518480000000, 7.884052],[1518566400000, 7.881206],[1518652800000, 7.889283],[1518739200000, 8.049462],[1518825600000, 8.087469],[1518912000000, 8.087469],[1518998400000, 8.087469],[1519084800000, 8.085334],[1519171200000, 8.056530],[1519257600000, 7.989534],[1519344000000, 7.946961],[1519430400000, 7.960418],[1519516800000, 7.960418],[1519603200000, 7.960418],[1519689600000, 7.979505],[1519776000000, 7.955115]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });