$(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: [[1101859200000,4.46917],[1101945600000,4.45192],[1102032000000,4.48864],[1102118400000,4.43072],[1102204800000,4.43072],[1102291200000,4.43072],[1102377600000,4.43559],[1102464000000,4.44197],[1102550400000,4.32792],[1102636800000,4.3378],[1102723200000,null],[1102809600000,null],[1102896000000,null],[1102982400000,4.32672],[1103068800000,4.3159],[1103155200000,4.30913],[1103241600000,4.32622],[1103328000000,4.30417],[1103414400000,4.30417],[1103500800000,4.30417],[1103587200000,4.32073],[1103673600000,4.32695],[1103760000000,4.30955],[1103846400000,4.28643],[1103932800000,4.32031],[1104019200000,4.32031],[1104105600000,4.32031],[1104192000000,4.31709],[1104278400000,4.36747],[1104364800000,4.35482],[1104451200000,4.37873]], 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: [[1101859200000, 4.469175],[1101859200000, 4.469175],[1101945600000, 4.451917],[1102032000000, 4.488643],[1102118400000, 4.430717],[1102204800000, 4.430717],[1102291200000, 4.430717],[1102377600000, 4.435590],[1102464000000, 4.441970],[1102550400000, 4.327924],[1102636800000, 4.337798],[1102982400000, 4.326717],[1103068800000, 4.315905],[1103155200000, 4.309133],[1103241600000, 4.326217],[1103328000000, 4.304168],[1103414400000, 4.304168],[1103500800000, 4.304168],[1103587200000, 4.320732],[1103673600000, 4.326954],[1103760000000, 4.309554],[1103846400000, 4.286434],[1103932800000, 4.320314],[1104019200000, 4.320314],[1104105600000, 4.320314],[1104192000000, 4.317086],[1104278400000, 4.367466],[1104364800000, 4.354823],[1104451200000, 4.378733]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });