$(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: [[1233446400000,4.90595],[1233532800000,4.90595],[1233619200000,4.83571],[1233705600000,4.91907],[1233792000000,4.93345],[1233878400000,4.99612],[1233964800000,5.07699],[1234051200000,5.07699],[1234137600000,5.07699],[1234224000000,5.20131],[1234310400000,5.1467],[1234396800000,5.04546],[1234483200000,4.97954],[1234569600000,null],[1234656000000,null],[1234742400000,5.08849],[1234828800000,5.0092],[1234915200000,4.92566],[1235001600000,4.91682],[1235088000000,4.99201],[1235174400000,4.90989],[1235260800000,4.90989],[1235347200000,4.90989],[1235433600000,4.97801],[1235520000000,4.96414],[1235606400000,5.0049],[1235692800000,5.02406],[1235779200000,4.89462]], 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: [[1233446400000, 4.905951],[1233446400000, 4.905951],[1233532800000, 4.905951],[1233619200000, 4.835712],[1233705600000, 4.919072],[1233792000000, 4.933450],[1233878400000, 4.996121],[1233964800000, 5.076993],[1234051200000, 5.076993],[1234137600000, 5.076993],[1234224000000, 5.201309],[1234310400000, 5.146696],[1234396800000, 5.045460],[1234483200000, 4.979545],[1234742400000, 5.088492],[1234828800000, 5.009199],[1234915200000, 4.925661],[1235001600000, 4.916820],[1235088000000, 4.992014],[1235174400000, 4.909891],[1235260800000, 4.909891],[1235347200000, 4.909891],[1235433600000, 4.978006],[1235520000000, 4.964141],[1235606400000, 5.004902],[1235692800000, 5.024063],[1235779200000, 4.894616]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });