$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1114905600000,0.00105055],[1114992000000,0.00105055],[1115078400000,0.00105055],[1115164800000,0.00105055],[1115251200000,0.00105121],[1115337600000,0.00105099],[1115424000000,0.00105186],[1115510400000,0.00105186],[1115596800000,0.00105186],[1115683200000,0.00105186],[1115769600000,0.00105252],[1115856000000,0.00105208],[1115942400000,0.00105318],[1116028800000,0.00105406],[1116115200000,0.00105406],[1116201600000,0.00105406],[1116288000000,0.00105494],[1116374400000,0.0010556],[1116460800000,0.00105626],[1116547200000,0.00105715],[1116633600000,0.00105715],[1116720000000,0.00105715],[1116806400000,0.00105715],[1116892800000,0.00105826],[1116979200000,0.00105914],[1117065600000,0.0010587],[1117152000000,0.00105981],[1117238400000,0.0010607],[1117324800000,0.0010607],[1117411200000,0.0010607],[1117497600000,0.00106026]], 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, 0.001051],[1114905600000, 0.001051],[1114992000000, 0.001051],[1115078400000, 0.001051],[1115164800000, 0.001051],[1115251200000, 0.001051],[1115337600000, 0.001051],[1115424000000, 0.001052],[1115510400000, 0.001052],[1115596800000, 0.001052],[1115683200000, 0.001052],[1115769600000, 0.001053],[1115856000000, 0.001052],[1115942400000, 0.001053],[1116028800000, 0.001054],[1116115200000, 0.001054],[1116201600000, 0.001054],[1116288000000, 0.001055],[1116374400000, 0.001056],[1116460800000, 0.001056],[1116547200000, 0.001057],[1116633600000, 0.001057],[1116720000000, 0.001057],[1116806400000, 0.001057],[1116892800000, 0.001058],[1116979200000, 0.001059],[1117065600000, 0.001059],[1117152000000, 0.001060],[1117238400000, 0.001061],[1117324800000, 0.001061],[1117411200000, 0.001061],[1117497600000, 0.001060]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });