$(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: [[1177977600000,4.52229],[1178064000000,4.52229],[1178150400000,4.52229],[1178236800000,4.55692],[1178323200000,4.57011],[1178409600000,4.57011],[1178496000000,4.57011],[1178582400000,4.57518],[1178668800000,4.58102],[1178755200000,4.58102],[1178841600000,4.55926],[1178928000000,4.52942],[1179014400000,4.52942],[1179100800000,4.52942],[1179187200000,4.55785],[1179273600000,4.57886],[1179360000000,4.59103],[1179446400000,4.59264],[1179532800000,4.60885],[1179619200000,4.60885],[1179705600000,4.60885],[1179792000000,4.64665],[1179878400000,4.66031],[1179964800000,4.66287],[1180051200000,4.66688],[1180137600000,4.65869],[1180224000000,4.65869],[1180310400000,4.65869],[1180396800000,4.65869],[1180483200000,4.66816],[1180569600000,4.70697]], 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: [[1177977600000, 4.522294],[1177977600000, 4.522294],[1178064000000, 4.522294],[1178150400000, 4.522294],[1178236800000, 4.556917],[1178323200000, 4.570107],[1178409600000, 4.570107],[1178496000000, 4.570107],[1178582400000, 4.575176],[1178668800000, 4.581018],[1178755200000, 4.581018],[1178841600000, 4.559257],[1178928000000, 4.529416],[1179014400000, 4.529416],[1179100800000, 4.529416],[1179187200000, 4.557850],[1179273600000, 4.578856],[1179360000000, 4.591032],[1179446400000, 4.592639],[1179532800000, 4.608847],[1179619200000, 4.608847],[1179705600000, 4.608847],[1179792000000, 4.646650],[1179878400000, 4.660313],[1179964800000, 4.662868],[1180051200000, 4.666877],[1180137600000, 4.658686],[1180224000000, 4.658686],[1180310400000, 4.658686],[1180396800000, 4.658686],[1180483200000, 4.668157],[1180569600000, 4.706973]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });