$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1441065600000,2.61311],[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.65221],[1442534400000,null],[1442620800000,2.67511],[1442707200000,2.67511],[1442793600000,2.67511],[1442880000000,2.66656],[1442966400000,2.63165],[1443052800000,2.60434],[1443139200000,2.54974],[1443225600000,2.5338],[1443312000000,2.5338],[1443398400000,2.5338],[1443484800000,2.51661],[1443571200000,2.53302]], 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.613109],[1441065600000, 2.613109],[1442448000000, 2.652207],[1442620800000, 2.675113],[1442707200000, 2.675113],[1442793600000, 2.675113],[1442880000000, 2.666562],[1442966400000, 2.631653],[1443052800000, 2.604338],[1443139200000, 2.549742],[1443225600000, 2.533795],[1443312000000, 2.533795],[1443398400000, 2.533795],[1443484800000, 2.516613],[1443571200000, 2.533025]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });