$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1104883200000,4.34061],[1104969600000,4.31225],[1105056000000,4.31064],[1105142400000,null],[1105228800000,4.31064],[1105315200000,null],[1105401600000,4.3332],[1105488000000,4.35974],[1105574400000,4.35705],[1105660800000,4.40986],[1105747200000,4.37866],[1105833600000,4.37866],[1105920000000,4.37866],[1106006400000,4.37004],[1106092800000,4.33812],[1106179200000,4.30621],[1106265600000,4.30621],[1106352000000,4.31411],[1106438400000,4.31411],[1106524800000,4.31411],[1106611200000,null],[1106697600000,4.31949],[1106784000000,4.28446],[1106870400000,4.28172],[1106956800000,4.27639],[1107043200000,4.27639],[1107129600000,4.27623]], 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, 4.340608],[1104883200000, 4.340608],[1104969600000, 4.312248],[1105056000000, 4.310639],[1105228800000, 4.310639],[1105401600000, 4.333196],[1105488000000, 4.359742],[1105574400000, 4.357052],[1105660800000, 4.409863],[1105747200000, 4.378663],[1105833600000, 4.378663],[1105920000000, 4.378663],[1106006400000, 4.370042],[1106092800000, 4.338122],[1106179200000, 4.306209],[1106265600000, 4.306209],[1106352000000, 4.314114],[1106438400000, 4.314114],[1106524800000, 4.314114],[1106697600000, 4.319489],[1106784000000, 4.284461],[1106870400000, 4.281724],[1106956800000, 4.276386],[1107043200000, 4.276386],[1107129600000, 4.276225]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });