$(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: [[1406851200000,11.3288],[1406937600000,11.1181],[1407024000000,11.1181],[1407110400000,11.1181],[1407196800000,11.3084],[1407283200000,11.456],[1407369600000,11.5094],[1407456000000,11.603],[1407542400000,11.6919],[1407628800000,11.6919],[1407715200000,11.6919],[1407801600000,11.9089],[1407888000000,12.1777],[1407974400000,12.146],[1408060800000,12.1673],[1408147200000,12.2378],[1408233600000,12.2378],[1408320000000,12.2378],[1408406400000,12.1867],[1408492800000,12.0713],[1408579200000,12.35],[1408665600000,12.1854],[1408752000000,12.41],[1408838400000,12.41],[1408924800000,12.41],[1409011200000,12.41],[1409097600000,12.7199],[1409184000000,12.9441],[1409270400000,12.5561],[1409356800000,12.7351]], 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: [[1406851200000, 11.328806],[1406851200000, 11.328806],[1406937600000, 11.118139],[1407024000000, 11.118139],[1407110400000, 11.118139],[1407196800000, 11.308438],[1407283200000, 11.456015],[1407369600000, 11.509432],[1407456000000, 11.602994],[1407542400000, 11.691905],[1407628800000, 11.691905],[1407715200000, 11.691905],[1407801600000, 11.908884],[1407888000000, 12.177739],[1407974400000, 12.145973],[1408060800000, 12.167299],[1408147200000, 12.237768],[1408233600000, 12.237768],[1408320000000, 12.237768],[1408406400000, 12.186707],[1408492800000, 12.071332],[1408579200000, 12.350047],[1408665600000, 12.185401],[1408752000000, 12.410025],[1408838400000, 12.410025],[1408924800000, 12.410025],[1409011200000, 12.410025],[1409097600000, 12.719872],[1409184000000, 12.944107],[1409270400000, 12.556072],[1409356800000, 12.735061]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });