$(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: [[1235865600000,0.722157],[1235952000000,0.722157],[1236038400000,0.721176],[1236124800000,0.720502],[1236211200000,0.719653],[1236297600000,0.719162],[1236384000000,0.718639],[1236470400000,0.718639],[1236556800000,0.718639],[1236643200000,0.718639],[1236729600000,null],[1236816000000,0.715913],[1236902400000,0.714339],[1236988800000,0.713703],[1237075200000,0.713703],[1237161600000,0.713703],[1237248000000,0.71204],[1237334400000,0.711671],[1237420800000,0.710503],[1237507200000,0.709037],[1237593600000,0.707499],[1237680000000,0.707499],[1237766400000,0.707499],[1237852800000,0.706591],[1237939200000,0.705846],[1238025600000,0.704709],[1238112000000,0.703428],[1238198400000,0.703049],[1238284800000,0.703049],[1238371200000,0.703049],[1238457600000,0.702683]], 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: [[1235865600000, 0.722157],[1235865600000, 0.722157],[1235952000000, 0.722157],[1236038400000, 0.721176],[1236124800000, 0.720502],[1236211200000, 0.719653],[1236297600000, 0.719162],[1236384000000, 0.718639],[1236470400000, 0.718639],[1236556800000, 0.718639],[1236643200000, 0.718639],[1236816000000, 0.715913],[1236902400000, 0.714339],[1236988800000, 0.713703],[1237075200000, 0.713703],[1237161600000, 0.713703],[1237248000000, 0.712040],[1237334400000, 0.711671],[1237420800000, 0.710503],[1237507200000, 0.709037],[1237593600000, 0.707499],[1237680000000, 0.707499],[1237766400000, 0.707499],[1237852800000, 0.706591],[1237939200000, 0.705846],[1238025600000, 0.704709],[1238112000000, 0.703428],[1238198400000, 0.703049],[1238284800000, 0.703049],[1238371200000, 0.703049],[1238457600000, 0.702683]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });