$(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: [[1231200000000,5.45007],[1231286400000,5.48173],[1231372800000,5.48173],[1231459200000,5.41669],[1231545600000,5.43941],[1231632000000,5.43941],[1231718400000,5.43941],[1231804800000,5.29489],[1231891200000,5.13824],[1231977600000,5.13087],[1232064000000,5.08399],[1232150400000,5.21029],[1232236800000,null],[1232323200000,5.21029],[1232409600000,5.17126],[1232496000000,5.06363],[1232582400000,4.98606],[1232668800000,5.04959],[1232755200000,4.9668],[1232841600000,4.9668],[1232928000000,4.9668],[1233014400000,5.05856],[1233100800000,5.10158],[1233187200000,5.15276],[1233273600000,5.06242],[1233360000000,4.90595]], 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: [[1231200000000, 5.450070],[1231200000000, 5.450070],[1231286400000, 5.481732],[1231372800000, 5.481732],[1231459200000, 5.416692],[1231545600000, 5.439409],[1231632000000, 5.439409],[1231718400000, 5.439409],[1231804800000, 5.294887],[1231891200000, 5.138241],[1231977600000, 5.130867],[1232064000000, 5.083989],[1232150400000, 5.210290],[1232323200000, 5.210290],[1232409600000, 5.171255],[1232496000000, 5.063625],[1232582400000, 4.986056],[1232668800000, 5.049588],[1232755200000, 4.966803],[1232841600000, 4.966803],[1232928000000, 4.966803],[1233014400000, 5.058565],[1233100800000, 5.101579],[1233187200000, 5.152763],[1233273600000, 5.062416],[1233360000000, 4.905951]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });