$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1422748800000,11.9455],[1422835200000,11.9455],[1422921600000,11.9371],[1423008000000,12.0059],[1423094400000,12.3882],[1423180800000,13.3817],[1423267200000,null],[1423353600000,17.1834],[1423440000000,17.1834],[1423526400000,18.578],[1423612800000,18.3272],[1423699200000,18.8441],[1423785600000,18.4541],[1423872000000,19.069],[1423958400000,19.069],[1424044800000,19.069],[1424131200000,19.2029],[1424217600000,19.4238],[1424304000000,19.7839],[1424390400000,20.1044],[1424476800000,20.5111],[1424563200000,20.5111],[1424649600000,20.5111],[1424736000000,20.8513],[1424822400000,20.7771],[1424908800000,20.6035],[1424995200000,22.1417],[1425081600000,20.545]], 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: [[1422748800000, 11.945488],[1422748800000, 11.945488],[1422835200000, 11.945488],[1422921600000, 11.937078],[1423008000000, 12.005934],[1423094400000, 12.388250],[1423180800000, 13.381741],[1423353600000, 17.183405],[1423440000000, 17.183405],[1423526400000, 18.577980],[1423612800000, 18.327220],[1423699200000, 18.844112],[1423785600000, 18.454100],[1423872000000, 19.068976],[1423958400000, 19.068976],[1424044800000, 19.068976],[1424131200000, 19.202917],[1424217600000, 19.423823],[1424304000000, 19.783889],[1424390400000, 20.104367],[1424476800000, 20.511100],[1424563200000, 20.511100],[1424649600000, 20.511100],[1424736000000, 20.851331],[1424822400000, 20.777053],[1424908800000, 20.603466],[1424995200000, 22.141725],[1425081600000, 20.545036]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });