$(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: [[1262736000000,7.31304],[1262822400000,7.3091],[1262908800000,7.3091],[1262995200000,7.3091],[1263081600000,7.3091],[1263168000000,7.3091],[1263254400000,7.44475],[1263340800000,7.39245],[1263427200000,7.41066],[1263513600000,7.43524],[1263600000000,7.39752],[1263686400000,7.39752],[1263772800000,7.39752],[1263859200000,7.41211],[1263945600000,7.35542],[1264032000000,7.31405],[1264118400000,7.2853],[1264204800000,7.22899],[1264291200000,7.22899],[1264377600000,7.22899],[1264464000000,7.24792],[1264550400000,7.18458],[1264636800000,7.19276],[1264723200000,7.20916],[1264809600000,7.1433],[1264896000000,7.1433]], 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: [[1262736000000, 7.313043],[1262736000000, 7.313043],[1262822400000, 7.309099],[1262908800000, 7.309099],[1262995200000, 7.309099],[1263081600000, 7.309099],[1263168000000, 7.309099],[1263254400000, 7.444750],[1263340800000, 7.392445],[1263427200000, 7.410659],[1263513600000, 7.435236],[1263600000000, 7.397520],[1263686400000, 7.397520],[1263772800000, 7.397520],[1263859200000, 7.412110],[1263945600000, 7.355417],[1264032000000, 7.314050],[1264118400000, 7.285303],[1264204800000, 7.228989],[1264291200000, 7.228989],[1264377600000, 7.228989],[1264464000000, 7.247919],[1264550400000, 7.184580],[1264636800000, 7.192755],[1264723200000, 7.209165],[1264809600000, 7.143298],[1264896000000, 7.143298]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });