$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1099267200000,4.41786],[1099353600000,4.41619],[1099440000000,4.40159],[1099526400000,4.41453],[1099612800000,null],[1099699200000,null],[1099785600000,null],[1099872000000,null],[1099958400000,null],[1100044800000,4.52371],[1100131200000,4.52371],[1100217600000,4.50255],[1100304000000,4.50914],[1100390400000,4.50914],[1100476800000,4.50914],[1100563200000,4.51032],[1100649600000,4.51678],[1100736000000,4.54638],[1100822400000,4.55527],[1100908800000,4.55928],[1100995200000,4.55928],[1101081600000,4.55928],[1101168000000,4.56262],[1101254400000,4.58435],[1101340800000,4.60644],[1101427200000,4.63911],[1101513600000,4.63776],[1101600000000,4.63776],[1101686400000,4.63776],[1101772800000,4.63357]], 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, 4.417860],[1099267200000, 4.417860],[1099353600000, 4.416190],[1099440000000, 4.401590],[1099526400000, 4.414530],[1100044800000, 4.523706],[1100131200000, 4.523706],[1100217600000, 4.502548],[1100304000000, 4.509136],[1100390400000, 4.509136],[1100476800000, 4.509136],[1100563200000, 4.510322],[1100649600000, 4.516782],[1100736000000, 4.546376],[1100822400000, 4.555267],[1100908800000, 4.559277],[1100995200000, 4.559277],[1101081600000, 4.559277],[1101168000000, 4.562625],[1101254400000, 4.584347],[1101340800000, 4.606439],[1101427200000, 4.639107],[1101513600000, 4.637758],[1101600000000, 4.637758],[1101686400000, 4.637758],[1101772800000, 4.633568]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });