$(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: [[1291161600000,9.91878],[1291248000000,9.91878],[1291334400000,9.925],[1291420800000,9.92998],[1291507200000,9.92998],[1291593600000,9.92998],[1291680000000,9.95472],[1291766400000,9.94622],[1291852800000,9.94795],[1291939200000,9.95169],[1292025600000,9.95382],[1292112000000,9.95382],[1292198400000,9.95382],[1292284800000,9.95257],[1292371200000,9.97008],[1292457600000,9.97008],[1292544000000,9.97058],[1292630400000,9.97058],[1292716800000,9.97058],[1292803200000,9.97058],[1292889600000,9.96933],[1292976000000,9.97058],[1293062400000,9.97058],[1293148800000,9.97058],[1293235200000,9.97057],[1293321600000,9.97057],[1293408000000,9.97057],[1293494400000,9.97007],[1293580800000,9.97382],[1293667200000,9.97069],[1293753600000,9.97832]], 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: [[1291161600000, 9.918780],[1291161600000, 9.918780],[1291248000000, 9.918780],[1291334400000, 9.925000],[1291420800000, 9.929982],[1291507200000, 9.929982],[1291593600000, 9.929982],[1291680000000, 9.954722],[1291766400000, 9.946216],[1291852800000, 9.947954],[1291939200000, 9.951690],[1292025600000, 9.953817],[1292112000000, 9.953817],[1292198400000, 9.953817],[1292284800000, 9.952572],[1292371200000, 9.970076],[1292457600000, 9.970076],[1292544000000, 9.970577],[1292630400000, 9.970577],[1292716800000, 9.970577],[1292803200000, 9.970577],[1292889600000, 9.969329],[1292976000000, 9.970577],[1293062400000, 9.970577],[1293148800000, 9.970577],[1293235200000, 9.970570],[1293321600000, 9.970570],[1293408000000, 9.970570],[1293494400000, 9.970069],[1293580800000, 9.973816],[1293667200000, 9.970688],[1293753600000, 9.978318]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });