$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1114905600000,9.28309],[1114992000000,9.28309],[1115078400000,9.28309],[1115164800000,9.28309],[1115251200000,9.21533],[1115337600000,9.30018],[1115424000000,9.30018],[1115510400000,9.30018],[1115596800000,9.30018],[1115683200000,9.30018],[1115769600000,9.23218],[1115856000000,9.24908],[1115942400000,9.18182],[1116028800000,9.0991],[1116115200000,9.0991],[1116201600000,9.0991],[1116288000000,9.06643],[1116374400000,9.08273],[1116460800000,9.06643],[1116547200000,9.11552],[1116633600000,9.08273],[1116720000000,9.08273],[1116806400000,9.08273],[1116892800000,9.01786],[1116979200000,9.03399],[1117065600000,9.05018],[1117152000000,9.03399],[1117238400000,9.00178],[1117324800000,9.00178],[1117411200000,9.00178],[1117497600000,9.00178]], 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: [[1114905600000, 9.283088],[1114905600000, 9.283088],[1114992000000, 9.283088],[1115078400000, 9.283088],[1115164800000, 9.283088],[1115251200000, 9.215328],[1115337600000, 9.300184],[1115424000000, 9.300184],[1115510400000, 9.300184],[1115596800000, 9.300184],[1115683200000, 9.300184],[1115769600000, 9.232176],[1115856000000, 9.249084],[1115942400000, 9.181818],[1116028800000, 9.099099],[1116115200000, 9.099099],[1116201600000, 9.099099],[1116288000000, 9.066427],[1116374400000, 9.082734],[1116460800000, 9.066427],[1116547200000, 9.115523],[1116633600000, 9.082734],[1116720000000, 9.082734],[1116806400000, 9.082734],[1116892800000, 9.017857],[1116979200000, 9.033989],[1117065600000, 9.050179],[1117152000000, 9.033989],[1117238400000, 9.001783],[1117324800000, 9.001783],[1117411200000, 9.001783],[1117497600000, 9.001783]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });