$(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: [[1217548800000,4.73618],[1217635200000,4.722],[1217721600000,4.722],[1217808000000,4.722],[1217894400000,4.70339],[1217980800000,4.64045],[1218067200000,4.64034],[1218153600000,4.62669],[1218240000000,null],[1218326400000,null],[1218412800000,4.5433],[1218499200000,4.54213],[1218585600000,4.53178],[1218672000000,4.5357],[1218758400000,4.57747],[1218844800000,4.54876],[1218931200000,4.54876],[1219017600000,4.54876],[1219104000000,4.57726],[1219190400000,4.54624],[1219276800000,4.56321],[1219363200000,4.60034],[1219449600000,4.62666],[1219536000000,4.62666],[1219622400000,4.62666],[1219708800000,4.62666],[1219795200000,4.59962],[1219881600000,4.6414],[1219968000000,4.63094],[1220054400000,4.60405],[1220140800000,4.60405]], 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: [[1217548800000, 4.736184],[1217548800000, 4.736184],[1217635200000, 4.722002],[1217721600000, 4.722002],[1217808000000, 4.722002],[1217894400000, 4.703388],[1217980800000, 4.640449],[1218067200000, 4.640335],[1218153600000, 4.626689],[1218412800000, 4.543299],[1218499200000, 4.542131],[1218585600000, 4.531780],[1218672000000, 4.535696],[1218758400000, 4.577465],[1218844800000, 4.548758],[1218931200000, 4.548758],[1219017600000, 4.548758],[1219104000000, 4.577256],[1219190400000, 4.546238],[1219276800000, 4.563206],[1219363200000, 4.600337],[1219449600000, 4.626664],[1219536000000, 4.626664],[1219622400000, 4.626664],[1219708800000, 4.626664],[1219795200000, 4.599618],[1219881600000, 4.641399],[1219968000000, 4.630942],[1220054400000, 4.604046],[1220140800000, 4.604046]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });