$(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: [[1375315200000,7.76261],[1375401600000,7.76195],[1375488000000,7.68396],[1375574400000,null],[1375660800000,7.68396],[1375747200000,7.68852],[1375833600000,7.7041],[1375920000000,7.66851],[1376006400000,7.67751],[1376092800000,7.76707],[1376179200000,7.76707],[1376265600000,7.76707],[1376352000000,7.75192],[1376438400000,7.74531],[1376524800000,7.73258],[1376611200000,7.7398],[1376697600000,7.74284],[1376784000000,7.74284],[1376870400000,7.74284],[1376956800000,7.73673],[1377043200000,7.70254],[1377129600000,7.65991],[1377216000000,7.61518],[1377302400000,7.56316],[1377388800000,7.56316],[1377475200000,7.56316],[1377561600000,7.56316],[1377648000000,7.59335],[1377734400000,7.61964],[1377820800000,7.61583],[1377907200000,7.59094]], 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: [[1375315200000, 7.762607],[1375315200000, 7.762607],[1375401600000, 7.761948],[1375488000000, 7.683965],[1375660800000, 7.683965],[1375747200000, 7.688521],[1375833600000, 7.704096],[1375920000000, 7.668508],[1376006400000, 7.677510],[1376092800000, 7.767068],[1376179200000, 7.767068],[1376265600000, 7.767068],[1376352000000, 7.751920],[1376438400000, 7.745313],[1376524800000, 7.732581],[1376611200000, 7.739799],[1376697600000, 7.742838],[1376784000000, 7.742838],[1376870400000, 7.742838],[1376956800000, 7.736732],[1377043200000, 7.702544],[1377129600000, 7.659911],[1377216000000, 7.615184],[1377302400000, 7.563165],[1377388800000, 7.563165],[1377475200000, 7.563165],[1377561600000, 7.563165],[1377648000000, 7.593350],[1377734400000, 7.619639],[1377820800000, 7.615825],[1377907200000, 7.590941]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });