$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1099267200000,0.18447],[1099353600000,0.18448],[1099440000000,0.1844],[1099526400000,0.18437],[1099612800000,null],[1099699200000,null],[1099785600000,null],[1099872000000,null],[1099958400000,null],[1100044800000,0.18507],[1100131200000,0.18507],[1100217600000,0.18496],[1100304000000,0.18511],[1100390400000,0.18511],[1100476800000,0.18511],[1100563200000,0.18508],[1100649600000,0.18496],[1100736000000,0.18509],[1100822400000,0.18593],[1100908800000,0.18589],[1100995200000,0.18589],[1101081600000,0.18589],[1101168000000,0.18605],[1101254400000,0.18604],[1101340800000,0.18674],[1101427200000,0.18736],[1101513600000,0.18772],[1101600000000,0.18772],[1101686400000,0.18772],[1101772800000,0.18792]], 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.184470],[1099267200000, 0.184470],[1099353600000, 0.184480],[1099440000000, 0.184400],[1099526400000, 0.184370],[1100044800000, 0.185070],[1100131200000, 0.185070],[1100217600000, 0.184960],[1100304000000, 0.185110],[1100390400000, 0.185110],[1100476800000, 0.185110],[1100563200000, 0.185080],[1100649600000, 0.184960],[1100736000000, 0.185090],[1100822400000, 0.185930],[1100908800000, 0.185890],[1100995200000, 0.185890],[1101081600000, 0.185890],[1101168000000, 0.186050],[1101254400000, 0.186040],[1101340800000, 0.186740],[1101427200000, 0.187360],[1101513600000, 0.187720],[1101600000000, 0.187720],[1101686400000, 0.187720],[1101772800000, 0.187920]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });