$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1188604800000,0.19706],[1188691200000,0.19706],[1188777600000,0.19706],[1188864000000,0.19735],[1188950400000,0.19728],[1189036800000,0.1965],[1189123200000,0.19677],[1189209600000,0.19679],[1189296000000,0.19679],[1189382400000,0.19679],[1189468800000,0.19749],[1189555200000,0.19792],[1189641600000,0.19878],[1189728000000,0.19907],[1189814400000,0.19927],[1189900800000,0.19927],[1189987200000,0.19927],[1190073600000,0.19938],[1190160000000,0.19917],[1190246400000,0.2005],[1190332800000,0.20099],[1190419200000,0.20156],[1190505600000,0.20156],[1190592000000,0.20156],[1190678400000,0.20195],[1190764800000,0.20175],[1190851200000,null],[1190937600000,null],[1191024000000,0.20241],[1191110400000,0.20241]], 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, 0.197060],[1188604800000, 0.197060],[1188691200000, 0.197060],[1188777600000, 0.197060],[1188864000000, 0.197350],[1188950400000, 0.197280],[1189036800000, 0.196500],[1189123200000, 0.196770],[1189209600000, 0.196790],[1189296000000, 0.196790],[1189382400000, 0.196790],[1189468800000, 0.197490],[1189555200000, 0.197920],[1189641600000, 0.198780],[1189728000000, 0.199070],[1189814400000, 0.199270],[1189900800000, 0.199270],[1189987200000, 0.199270],[1190073600000, 0.199380],[1190160000000, 0.199170],[1190246400000, 0.200500],[1190332800000, 0.200990],[1190419200000, 0.201560],[1190505600000, 0.201560],[1190592000000, 0.201560],[1190678400000, 0.201950],[1190764800000, 0.201750],[1191024000000, 0.202410],[1191110400000, 0.202410]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });