$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1459468800000,1.33533],[1459555200000,1.33114],[1459641600000,1.33114],[1459728000000,1.33114],[1459814400000,1.32572],[1459900800000,1.32962],[1459987200000,1.32209],[1460073600000,1.31333],[1460160000000,1.30381],[1460246400000,null],[1460332800000,null],[1460419200000,1.29919],[1460505600000,1.29668],[1460592000000,1.29215],[1460678400000,1.30106],[1460764800000,1.28999],[1460851200000,1.28999],[1460937600000,1.28999],[1461024000000,1.29001],[1461110400000,1.28693],[1461196800000,1.28717],[1461283200000,1.28412],[1461369600000,1.28208],[1461456000000,1.28208],[1461542400000,1.28208],[1461628800000,1.28116],[1461715200000,1.27882],[1461801600000,1.27339],[1461888000000,1.27348],[1461974400000,1.27344]], 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: [[1459468800000, 1.335327],[1459468800000, 1.335327],[1459555200000, 1.331141],[1459641600000, 1.331141],[1459728000000, 1.331141],[1459814400000, 1.325716],[1459900800000, 1.329617],[1459987200000, 1.322091],[1460073600000, 1.313330],[1460160000000, 1.303807],[1460419200000, 1.299187],[1460505600000, 1.296680],[1460592000000, 1.292148],[1460678400000, 1.301059],[1460764800000, 1.289987],[1460851200000, 1.289987],[1460937600000, 1.289987],[1461024000000, 1.290015],[1461110400000, 1.286929],[1461196800000, 1.287166],[1461283200000, 1.284124],[1461369600000, 1.282080],[1461456000000, 1.282080],[1461542400000, 1.282080],[1461628800000, 1.281161],[1461715200000, 1.278819],[1461801600000, 1.273393],[1461888000000, 1.273481],[1461974400000, 1.273442]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });