$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1483228800000,19.595],[1483315200000,19.595],[1483401600000,19.595],[1483488000000,19.595],[1483574400000,19.3827],[1483660800000,19.3827],[1483747200000,19.8243],[1483833600000,19.8243],[1483920000000,19.8243],[1484006400000,19.8243],[1484092800000,19.9502],[1484179200000,19.9965],[1484265600000,20.4872],[1484352000000,null],[1484438400000,20.7368],[1484524800000,20.7368],[1484611200000,20.7227],[1484697600000,20.8443],[1484784000000,20.7512],[1484870400000,20.7435],[1484956800000,20.6603],[1485043200000,20.6603],[1485129600000,20.6603],[1485216000000,20.6871],[1485302400000,20.6148],[1485388800000,20.5655],[1485475200000,20.4984],[1485561600000,20.4983],[1485648000000,20.4983],[1485734400000,20.4983],[1485820800000,20.432]], 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: [[1483228800000, 19.595039],[1483228800000, 19.595039],[1483315200000, 19.595039],[1483401600000, 19.595039],[1483488000000, 19.595039],[1483574400000, 19.382747],[1483660800000, 19.382747],[1483747200000, 19.824334],[1483833600000, 19.824334],[1483920000000, 19.824334],[1484006400000, 19.824334],[1484092800000, 19.950227],[1484179200000, 19.996484],[1484265600000, 20.487163],[1484438400000, 20.736849],[1484524800000, 20.736849],[1484611200000, 20.722693],[1484697600000, 20.844280],[1484784000000, 20.751221],[1484870400000, 20.743496],[1484956800000, 20.660270],[1485043200000, 20.660270],[1485129600000, 20.660270],[1485216000000, 20.687132],[1485302400000, 20.614768],[1485388800000, 20.565469],[1485475200000, 20.498411],[1485561600000, 20.498295],[1485648000000, 20.498295],[1485734400000, 20.498295],[1485820800000, 20.432019]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });