$(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: [[1136246400000,0.0010995],[1136332800000,0.0010995],[1136419200000,0.0010995],[1136505600000,5.49869],[1136592000000,5.49869],[1136678400000,5.49869],[1136764800000,5.49869],[1136851200000,5.49869],[1136937600000,5.49989],[1137024000000,5.50109],[1137110400000,5.50229],[1137196800000,5.50229],[1137283200000,5.50229],[1137369600000,5.50229],[1137456000000,5.50469],[1137542400000,5.50709],[1137628800000,5.50829],[1137715200000,5.50709],[1137801600000,5.50709],[1137888000000,5.50709],[1137974400000,5.50709],[1138060800000,5.51069],[1138147200000,5.51069],[1138233600000,5.5131],[1138320000000,5.5131],[1138406400000,5.51551],[1138492800000,5.51551],[1138579200000,5.51551],[1138665600000,5.51792]], 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: [[1136246400000, 0.001099],[1136246400000, 0.001099],[1136332800000, 0.001099],[1136419200000, 0.001099],[1136505600000, 5.498693],[1136592000000, 5.498693],[1136678400000, 5.498693],[1136764800000, 5.498693],[1136851200000, 5.498693],[1136937600000, 5.499891],[1137024000000, 5.501089],[1137110400000, 5.502288],[1137196800000, 5.502288],[1137283200000, 5.502288],[1137369600000, 5.502288],[1137456000000, 5.504687],[1137542400000, 5.507088],[1137628800000, 5.508290],[1137715200000, 5.507088],[1137801600000, 5.507088],[1137888000000, 5.507088],[1137974400000, 5.507088],[1138060800000, 5.510694],[1138147200000, 5.510694],[1138233600000, 5.513100],[1138320000000, 5.513100],[1138406400000, 5.515509],[1138492800000, 5.515509],[1138579200000, 5.515509],[1138665600000, 5.517920]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });