$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1188604800000,5.92306],[1188691200000,5.92306],[1188777600000,5.92306],[1188864000000,5.92375],[1188950400000,5.92445],[1189036800000,5.92514],[1189123200000,5.92514],[1189209600000,5.92584],[1189296000000,5.92584],[1189382400000,5.92584],[1189468800000,5.92653],[1189555200000,5.92723],[1189641600000,5.92723],[1189728000000,5.92793],[1189814400000,5.92793],[1189900800000,5.92793],[1189987200000,5.92793],[1190073600000,5.92793],[1190160000000,5.92862],[1190246400000,5.92932],[1190332800000,5.93071],[1190419200000,5.93071],[1190505600000,5.93071],[1190592000000,5.93071],[1190678400000,5.93071],[1190764800000,5.93071],[1190851200000,null],[1190937600000,null],[1191024000000,5.9328],[1191110400000,5.9328]], 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, 5.923059],[1188604800000, 5.923059],[1188691200000, 5.923059],[1188777600000, 5.923059],[1188864000000, 5.923754],[1188950400000, 5.924449],[1189036800000, 5.925144],[1189123200000, 5.925144],[1189209600000, 5.925839],[1189296000000, 5.925839],[1189382400000, 5.925839],[1189468800000, 5.926534],[1189555200000, 5.927230],[1189641600000, 5.927230],[1189728000000, 5.927926],[1189814400000, 5.927926],[1189900800000, 5.927926],[1189987200000, 5.927926],[1190073600000, 5.927926],[1190160000000, 5.928622],[1190246400000, 5.929318],[1190332800000, 5.930711],[1190419200000, 5.930711],[1190505600000, 5.930711],[1190592000000, 5.930711],[1190678400000, 5.930711],[1190764800000, 5.930711],[1191024000000, 5.932801],[1191110400000, 5.932801]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });