$(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: [[1506816000000,1.50915],[1506902400000,1.50915],[1506988800000,1.51417],[1507075200000,1.51842],[1507161600000,1.52527],[1507248000000,1.52657],[1507334400000,1.52509],[1507420800000,1.52509],[1507507200000,1.52509],[1507593600000,1.51495],[1507680000000,1.51995],[1507766400000,1.51721],[1507852800000,1.52653],[1507939200000,1.52653],[1508025600000,1.52653],[1508112000000,1.52653],[1508198400000,1.52653],[1508284800000,1.52445],[1508371200000,1.52175],[1508457600000,1.52837],[1508544000000,1.53149],[1508630400000,1.53149],[1508716800000,1.53149],[1508803200000,null],[1508889600000,1.53964],[1508976000000,1.54703],[1509062400000,1.55067],[1509148800000,1.55601],[1509235200000,1.55601],[1509321600000,1.55601],[1509408000000,1.5492]], 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: [[1506816000000, 1.509147],[1506816000000, 1.509147],[1506902400000, 1.509147],[1506988800000, 1.514174],[1507075200000, 1.518423],[1507161600000, 1.525273],[1507248000000, 1.526569],[1507334400000, 1.525085],[1507420800000, 1.525085],[1507507200000, 1.525085],[1507593600000, 1.514954],[1507680000000, 1.519949],[1507766400000, 1.517212],[1507852800000, 1.526534],[1507939200000, 1.526534],[1508025600000, 1.526534],[1508112000000, 1.526534],[1508198400000, 1.526534],[1508284800000, 1.524453],[1508371200000, 1.521748],[1508457600000, 1.528370],[1508544000000, 1.531491],[1508630400000, 1.531491],[1508716800000, 1.531491],[1508889600000, 1.539640],[1508976000000, 1.547026],[1509062400000, 1.550672],[1509148800000, 1.556005],[1509235200000, 1.556005],[1509321600000, 1.556005],[1509408000000, 1.549202]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });