$(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: [[1217548800000,4.57158],[1217635200000,4.52872],[1217721600000,4.52872],[1217808000000,4.52872],[1217894400000,4.51691],[1217980800000,4.44208],[1218067200000,4.43163],[1218153600000,4.41287],[1218240000000,null],[1218326400000,null],[1218412800000,4.32535],[1218499200000,4.31651],[1218585600000,4.23618],[1218672000000,4.21671],[1218758400000,4.24512],[1218844800000,4.18926],[1218931200000,4.18926],[1219017600000,4.18926],[1219104000000,4.22955],[1219190400000,4.19878],[1219276800000,4.217],[1219363200000,4.21821],[1219449600000,4.21402],[1219536000000,4.21402],[1219622400000,4.21402],[1219708800000,4.21402],[1219795200000,4.13187],[1219881600000,4.18117],[1219968000000,4.19923],[1220054400000,4.18427],[1220140800000,4.18427]], 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: [[1217548800000, 4.571584],[1217548800000, 4.571584],[1217635200000, 4.528723],[1217721600000, 4.528723],[1217808000000, 4.528723],[1217894400000, 4.516909],[1217980800000, 4.442082],[1218067200000, 4.431629],[1218153600000, 4.412869],[1218412800000, 4.325350],[1218499200000, 4.316507],[1218585600000, 4.236183],[1218672000000, 4.216713],[1218758400000, 4.245121],[1218844800000, 4.189259],[1218931200000, 4.189259],[1219017600000, 4.189259],[1219104000000, 4.229551],[1219190400000, 4.198778],[1219276800000, 4.217002],[1219363200000, 4.218215],[1219449600000, 4.214016],[1219536000000, 4.214016],[1219622400000, 4.214016],[1219708800000, 4.214016],[1219795200000, 4.131865],[1219881600000, 4.181165],[1219968000000, 4.199228],[1220054400000, 4.184270],[1220140800000, 4.184270]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });