$(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: [[1188604800000,4.79096],[1188691200000,4.79096],[1188777600000,4.79096],[1188864000000,4.79332],[1188950400000,4.79406],[1189036800000,4.78885],[1189123200000,4.78268],[1189209600000,4.80378],[1189296000000,4.80378],[1189382400000,4.80378],[1189468800000,4.78171],[1189555200000,4.82555],[1189641600000,4.84885],[1189728000000,4.88718],[1189814400000,4.89941],[1189900800000,4.89941],[1189987200000,4.89941],[1190073600000,4.91712],[1190160000000,4.92256],[1190246400000,4.98578],[1190332800000,5.04748],[1190419200000,5.0421],[1190505600000,5.0421],[1190592000000,5.0421],[1190678400000,5.05],[1190764800000,5.03893],[1190851200000,null],[1190937600000,null],[1191024000000,5.07038],[1191110400000,5.07038]], 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: [[1188604800000, 4.790963],[1188604800000, 4.790963],[1188691200000, 4.790963],[1188777600000, 4.790963],[1188864000000, 4.793316],[1188950400000, 4.794058],[1189036800000, 4.788848],[1189123200000, 4.782682],[1189209600000, 4.803778],[1189296000000, 4.803778],[1189382400000, 4.803778],[1189468800000, 4.781711],[1189555200000, 4.825548],[1189641600000, 4.848852],[1189728000000, 4.887176],[1189814400000, 4.899412],[1189900800000, 4.899412],[1189987200000, 4.899412],[1190073600000, 4.917124],[1190160000000, 4.922561],[1190246400000, 4.985782],[1190332800000, 5.047482],[1190419200000, 5.042104],[1190505600000, 5.042104],[1190592000000, 5.042104],[1190678400000, 5.050000],[1190764800000, 5.038926],[1191024000000, 5.070383],[1191110400000, 5.070383]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });