$(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: [[1417392000000,11.5305],[1417478400000,11.5533],[1417564800000,11.5663],[1417651200000,11.6159],[1417737600000,11.6802],[1417824000000,11.7242],[1417910400000,11.7242],[1417996800000,11.7242],[1418083200000,11.7798],[1418169600000,11.7863],[1418256000000,11.8735],[1418342400000,11.9419],[1418428800000,11.9618],[1418515200000,11.9618],[1418601600000,11.9618],[1418688000000,12.0327],[1418774400000,12.0087],[1418860800000,12.1273],[1418947200000,null],[1419033600000,11.9962],[1419120000000,11.9962],[1419206400000,11.9962],[1419292800000,12.0565],[1419379200000,11.8729],[1419465600000,11.9325],[1419552000000,11.9248],[1419638400000,11.9233],[1419724800000,11.9233],[1419811200000,11.9233],[1419897600000,11.9207],[1419984000000,11.9207]], 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: [[1417392000000, 11.530458],[1417392000000, 11.530458],[1417478400000, 11.553307],[1417564800000, 11.566303],[1417651200000, 11.615945],[1417737600000, 11.680171],[1417824000000, 11.724236],[1417910400000, 11.724236],[1417996800000, 11.724236],[1418083200000, 11.779833],[1418169600000, 11.786260],[1418256000000, 11.873480],[1418342400000, 11.941905],[1418428800000, 11.961808],[1418515200000, 11.961808],[1418601600000, 11.961808],[1418688000000, 12.032670],[1418774400000, 12.008733],[1418860800000, 12.127278],[1419033600000, 11.996205],[1419120000000, 11.996205],[1419206400000, 11.996205],[1419292800000, 12.056489],[1419379200000, 11.872917],[1419465600000, 11.932467],[1419552000000, 11.924769],[1419638400000, 11.923253],[1419724800000, 11.923253],[1419811200000, 11.923253],[1419897600000, 11.920731],[1419984000000, 11.920731]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });