$(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: [[1454284800000,17.946],[1454371200000,17.8697],[1454457600000,18.1255],[1454544000000,17.9746],[1454630400000,18.4576],[1454716800000,18.5647],[1454803200000,18.5647],[1454889600000,18.5647],[1454976000000,18.3673],[1455062400000,18.4888],[1455148800000,18.6308],[1455235200000,18.7632],[1455321600000,18.7111],[1455408000000,18.7111],[1455494400000,18.7111],[1455580800000,19.1668],[1455667200000,19.2708],[1455753600000,18.9515],[1455840000000,18.8453],[1455926400000,19.0812],[1456012800000,19.0812],[1456099200000,19.0812],[1456185600000,19.2554],[1456272000000,19.3507],[1456358400000,19.3105],[1456444800000,19.4316],[1456531200000,19.3],[1456617600000,19.3],[1456704000000,19.3]], 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: [[1454284800000, 17.946040],[1454284800000, 17.946040],[1454371200000, 17.869686],[1454457600000, 18.125537],[1454544000000, 17.974559],[1454630400000, 18.457589],[1454716800000, 18.564681],[1454803200000, 18.564681],[1454889600000, 18.564681],[1454976000000, 18.367326],[1455062400000, 18.488793],[1455148800000, 18.630845],[1455235200000, 18.763242],[1455321600000, 18.711112],[1455408000000, 18.711112],[1455494400000, 18.711112],[1455580800000, 19.166792],[1455667200000, 19.270763],[1455753600000, 18.951488],[1455840000000, 18.845259],[1455926400000, 19.081228],[1456012800000, 19.081228],[1456099200000, 19.081228],[1456185600000, 19.255411],[1456272000000, 19.350743],[1456358400000, 19.310491],[1456444800000, 19.431596],[1456531200000, 19.300013],[1456617600000, 19.300013],[1456704000000, 19.300013]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });