$(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: [[1404864000000,0.33881],[1404950400000,0.33865],[1405036800000,null],[1405123200000,0.34561],[1405209600000,0.34561],[1405296000000,0.34561],[1405382400000,0.34342],[1405468800000,0.34118],[1405555200000,0.34092],[1405641600000,0.34083],[1405728000000,0.33475],[1405814400000,null],[1405900800000,null],[1405987200000,0.33148],[1406073600000,0.33257],[1406160000000,0.33233],[1406246400000,0.33562],[1406332800000,0.33504],[1406419200000,0.33504],[1406505600000,0.33504],[1406592000000,0.33829],[1406678400000,0.33916],[1406764800000,0.33685]], 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: [[1404864000000, 0.338810],[1404864000000, 0.338810],[1404950400000, 0.338650],[1405123200000, 0.345610],[1405209600000, 0.345610],[1405296000000, 0.345610],[1405382400000, 0.343420],[1405468800000, 0.341180],[1405555200000, 0.340920],[1405641600000, 0.340830],[1405728000000, 0.334750],[1405987200000, 0.331480],[1406073600000, 0.332570],[1406160000000, 0.332330],[1406246400000, 0.335620],[1406332800000, 0.335040],[1406419200000, 0.335040],[1406505600000, 0.335040],[1406592000000, 0.338290],[1406678400000, 0.339160],[1406764800000, 0.336850]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });