$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1441065600000,2.57332],[1441152000000,null],[1441238400000,null],[1441324800000,null],[1441411200000,null],[1441497600000,null],[1441584000000,null],[1441670400000,null],[1441756800000,null],[1441843200000,null],[1441929600000,null],[1442016000000,null],[1442102400000,null],[1442188800000,null],[1442275200000,null],[1442361600000,null],[1442448000000,2.62758],[1442534400000,null],[1442620800000,2.64993],[1442707200000,2.64993],[1442793600000,2.64993],[1442880000000,2.63527],[1442966400000,2.59596],[1443052800000,2.56469],[1443139200000,2.55888],[1443225600000,2.56652],[1443312000000,2.56652],[1443398400000,2.56652],[1443484800000,2.55104],[1443571200000,2.55335]], 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: [[1441065600000, 2.573320],[1441065600000, 2.573320],[1442448000000, 2.627577],[1442620800000, 2.649925],[1442707200000, 2.649925],[1442793600000, 2.649925],[1442880000000, 2.635267],[1442966400000, 2.595959],[1443052800000, 2.564689],[1443139200000, 2.558882],[1443225600000, 2.566521],[1443312000000, 2.566521],[1443398400000, 2.566521],[1443484800000, 2.551037],[1443571200000, 2.553351]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });