$(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: [[1243814400000,6.07807],[1243900800000,6.16575],[1243987200000,6.21295],[1244073600000,6.20853],[1244160000000,6.05079],[1244246400000,6.12938],[1244332800000,6.12938],[1244419200000,6.12938],[1244505600000,6.12938],[1244592000000,6.04572],[1244678400000,6.17221],[1244764800000,6.17748],[1244851200000,6.17734],[1244937600000,6.17734],[1245024000000,6.17734],[1245110400000,6.09881],[1245196800000,6.10265],[1245283200000,6.01591],[1245369600000,6.04942],[1245456000000,6.13998],[1245542400000,6.13998],[1245628800000,6.13998],[1245715200000,6.05416],[1245801600000,5.99571],[1245888000000,6.08847],[1245974400000,6.08082],[1246060800000,6.16124],[1246147200000,6.16124],[1246233600000,6.16124],[1246320000000,6.16124]], 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: [[1243814400000, 6.078072],[1243814400000, 6.078072],[1243900800000, 6.165754],[1243987200000, 6.212953],[1244073600000, 6.208526],[1244160000000, 6.050787],[1244246400000, 6.129382],[1244332800000, 6.129382],[1244419200000, 6.129382],[1244505600000, 6.129382],[1244592000000, 6.045722],[1244678400000, 6.172210],[1244764800000, 6.177482],[1244851200000, 6.177343],[1244937600000, 6.177343],[1245024000000, 6.177343],[1245110400000, 6.098808],[1245196800000, 6.102652],[1245283200000, 6.015915],[1245369600000, 6.049419],[1245456000000, 6.139979],[1245542400000, 6.139979],[1245628800000, 6.139979],[1245715200000, 6.054164],[1245801600000, 5.995714],[1245888000000, 6.088471],[1245974400000, 6.080815],[1246060800000, 6.161237],[1246147200000, 6.161237],[1246233600000, 6.161237],[1246320000000, 6.161237]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });