$(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: [[1480550400000,19.02],[1480636800000,18.9496],[1480723200000,19.2294],[1480809600000,19.2294],[1480896000000,19.2294],[1480982400000,19.4299],[1481068800000,19.4602],[1481155200000,19.3778],[1481241600000,19.2533],[1481328000000,19.324],[1481414400000,19.324],[1481500800000,19.324],[1481587200000,19.5646],[1481673600000,19.5701],[1481760000000,19.7514],[1481846400000,19.4205],[1481932800000,19.3046],[1482019200000,19.3046],[1482105600000,19.3046],[1482192000000,19.1694],[1482278400000,19.1578],[1482364800000,19.2038],[1482451200000,18.9724],[1482537600000,18.8372],[1482624000000,18.8372],[1482710400000,18.8372],[1482796800000,18.9081],[1482883200000,18.9081],[1482969600000,19.3014],[1483056000000,19.595],[1483142400000,19.595]], 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: [[1480550400000, 19.020044],[1480550400000, 19.020044],[1480636800000, 18.949593],[1480723200000, 19.229360],[1480809600000, 19.229360],[1480896000000, 19.229360],[1480982400000, 19.429940],[1481068800000, 19.460182],[1481155200000, 19.377826],[1481241600000, 19.253335],[1481328000000, 19.323959],[1481414400000, 19.323959],[1481500800000, 19.323959],[1481587200000, 19.564645],[1481673600000, 19.570087],[1481760000000, 19.751438],[1481846400000, 19.420524],[1481932800000, 19.304588],[1482019200000, 19.304588],[1482105600000, 19.304588],[1482192000000, 19.169359],[1482278400000, 19.157826],[1482364800000, 19.203767],[1482451200000, 18.972434],[1482537600000, 18.837199],[1482624000000, 18.837199],[1482710400000, 18.837199],[1482796800000, 18.908062],[1482883200000, 18.908062],[1482969600000, 19.301389],[1483056000000, 19.595039],[1483142400000, 19.595039]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });