$(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: [[1125532800000,2.99145],[1125619200000,3.00175],[1125705600000,3.01208],[1125792000000,3.01208],[1125878400000,3.01208],[1125964800000,3.01796],[1126051200000,3.01507],[1126137600000,3.01152],[1126224000000,3.01032],[1126310400000,3.01234],[1126396800000,3.01234],[1126483200000,3.01234],[1126569600000,null],[1126656000000,null],[1126742400000,3.01039],[1126828800000,null],[1126915200000,null],[1127001600000,3.00818],[1127088000000,3.00818],[1127174400000,3.00205],[1127260800000,3.00488],[1127347200000,3.00771],[1127433600000,3.00644],[1127520000000,3.00171],[1127606400000,3.00171],[1127692800000,3.00171],[1127779200000,2.99028],[1127865600000,2.98338],[1127952000000,2.98399],[1128038400000,2.99176]], 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: [[1125532800000, 2.991448],[1125532800000, 2.991448],[1125619200000, 3.001747],[1125705600000, 3.012083],[1125792000000, 3.012083],[1125878400000, 3.012083],[1125964800000, 3.017965],[1126051200000, 3.015073],[1126137600000, 3.011521],[1126224000000, 3.010316],[1126310400000, 3.012336],[1126396800000, 3.012336],[1126483200000, 3.012336],[1126742400000, 3.010394],[1127001600000, 3.008181],[1127088000000, 3.008181],[1127174400000, 3.002054],[1127260800000, 3.004881],[1127347200000, 3.007710],[1127433600000, 3.006438],[1127520000000, 3.001712],[1127606400000, 3.001712],[1127692800000, 3.001712],[1127779200000, 2.990282],[1127865600000, 2.983379],[1127952000000, 2.983989],[1128038400000, 2.991757]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });