$(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: [[1446336000000,16.2971],[1446422400000,16.2971],[1446508800000,16.4265],[1446595200000,16.5127],[1446681600000,16.594],[1446768000000,16.3788],[1446854400000,16.1838],[1446940800000,16.1838],[1447027200000,16.1838],[1447113600000,16.0655],[1447200000000,16.0509],[1447286400000,16.0616],[1447372800000,16.308],[1447459200000,16.4632],[1447545600000,16.4632],[1447632000000,16.4632],[1447718400000,16.4692],[1447804800000,16.9544],[1447891200000,16.9725],[1447977600000,17.0699],[1448064000000,17.2915],[1448150400000,17.2915],[1448236800000,17.2915],[1448323200000,17.2933],[1448409600000,17.2786],[1448496000000,17.2349],[1448582400000,17.0524],[1448668800000,17.2033],[1448755200000,17.2033],[1448841600000,17.2033]], 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: [[1446336000000, 16.297085],[1446336000000, 16.297085],[1446422400000, 16.297085],[1446508800000, 16.426465],[1446595200000, 16.512714],[1446681600000, 16.594042],[1446768000000, 16.378821],[1446854400000, 16.183792],[1446940800000, 16.183792],[1447027200000, 16.183792],[1447113600000, 16.065463],[1447200000000, 16.050870],[1447286400000, 16.061583],[1447372800000, 16.307982],[1447459200000, 16.463191],[1447545600000, 16.463191],[1447632000000, 16.463191],[1447718400000, 16.469155],[1447804800000, 16.954372],[1447891200000, 16.972471],[1447977600000, 17.069947],[1448064000000, 17.291545],[1448150400000, 17.291545],[1448236800000, 17.291545],[1448323200000, 17.293337],[1448409600000, 17.278559],[1448496000000, 17.234891],[1448582400000, 17.052405],[1448668800000, 17.203326],[1448755200000, 17.203326],[1448841600000, 17.203326]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });