$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1099267200000,0.0274707],[1099353600000,0.0275067],[1099440000000,0.0274429],[1099526400000,0.027523],[1099612800000,null],[1099699200000,null],[1099785600000,null],[1099872000000,null],[1099958400000,null],[1100044800000,0.0281405],[1100131200000,0.0281405],[1100217600000,0.0279793],[1100304000000,0.0280472],[1100390400000,0.0280472],[1100476800000,0.0280472],[1100563200000,0.0281879],[1100649600000,0.028158],[1100736000000,0.0282578],[1100822400000,0.0281018],[1100908800000,0.027993],[1100995200000,0.027993],[1101081600000,0.027993],[1101168000000,0.0280892],[1101254400000,0.0283713],[1101340800000,0.0284599],[1101427200000,0.0285316],[1101513600000,0.0286451],[1101600000000,0.0286451],[1101686400000,0.0286451],[1101772800000,0.0285111]], 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: [[1099267200000, 0.027471],[1099267200000, 0.027471],[1099353600000, 0.027507],[1099440000000, 0.027443],[1099526400000, 0.027523],[1100044800000, 0.028140],[1100131200000, 0.028140],[1100217600000, 0.027979],[1100304000000, 0.028047],[1100390400000, 0.028047],[1100476800000, 0.028047],[1100563200000, 0.028188],[1100649600000, 0.028158],[1100736000000, 0.028258],[1100822400000, 0.028102],[1100908800000, 0.027993],[1100995200000, 0.027993],[1101081600000, 0.027993],[1101168000000, 0.028089],[1101254400000, 0.028371],[1101340800000, 0.028460],[1101427200000, 0.028532],[1101513600000, 0.028645],[1101600000000, 0.028645],[1101686400000, 0.028645],[1101772800000, 0.028511]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });