$(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: [[1104883200000,3.69823],[1104969600000,4.04264],[1105056000000,4.03926],[1105142400000,null],[1105228800000,4.03926],[1105315200000,null],[1105401600000,4.02809],[1105488000000,4.03946],[1105574400000,4.02284],[1105660800000,4.06132],[1105747200000,4.02745],[1105833600000,4.02745],[1105920000000,4.02745],[1106006400000,4.02537],[1106092800000,4.00784],[1106179200000,4.01728],[1106265600000,4.01728],[1106352000000,4.04961],[1106438400000,4.04961],[1106524800000,4.04961],[1106611200000,null],[1106697600000,4.06675],[1106784000000,4.08672],[1106870400000,4.10102],[1106956800000,4.10378],[1107043200000,4.10378],[1107129600000,4.10874]], 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: [[1104883200000, 3.698234],[1104883200000, 3.698234],[1104969600000, 4.042639],[1105056000000, 4.039264],[1105228800000, 4.039264],[1105401600000, 4.028094],[1105488000000, 4.039455],[1105574400000, 4.022842],[1105660800000, 4.061320],[1105747200000, 4.027445],[1105833600000, 4.027445],[1105920000000, 4.027445],[1106006400000, 4.025366],[1106092800000, 4.007837],[1106179200000, 4.017279],[1106265600000, 4.017279],[1106352000000, 4.049611],[1106438400000, 4.049611],[1106524800000, 4.049611],[1106697600000, 4.066747],[1106784000000, 4.086724],[1106870400000, 4.101021],[1106956800000, 4.103777],[1107043200000, 4.103777],[1107129600000, 4.108744]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });