$(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: [[1280620800000,5.79857],[1280707200000,5.79857],[1280793600000,5.82776],[1280880000000,5.84149],[1280966400000,5.83482],[1281052800000,5.83508],[1281139200000,5.83954],[1281225600000,null],[1281312000000,5.83954],[1281398400000,5.85674],[1281484800000,5.81935],[1281571200000,5.80172],[1281657600000,5.78929],[1281744000000,5.79203],[1281830400000,5.79203],[1281916800000,5.79203],[1282003200000,5.79256],[1282089600000,5.82331],[1282176000000,5.85084],[1282262400000,5.83981],[1282348800000,5.80604],[1282435200000,null],[1282521600000,null],[1282608000000,5.80582],[1282694400000,5.80582],[1282780800000,5.79629],[1282867200000,5.81477],[1282953600000,5.81092],[1283040000000,5.81092],[1283126400000,5.81092],[1283212800000,5.82626]], 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: [[1280620800000, 5.798573],[1280620800000, 5.798573],[1280707200000, 5.798573],[1280793600000, 5.827764],[1280880000000, 5.841489],[1280966400000, 5.834819],[1281052800000, 5.835079],[1281139200000, 5.839537],[1281312000000, 5.839537],[1281398400000, 5.856736],[1281484800000, 5.819351],[1281571200000, 5.801720],[1281657600000, 5.789289],[1281744000000, 5.792034],[1281830400000, 5.792034],[1281916800000, 5.792034],[1282003200000, 5.792564],[1282089600000, 5.823313],[1282176000000, 5.850838],[1282262400000, 5.839814],[1282348800000, 5.806044],[1282608000000, 5.805823],[1282694400000, 5.805823],[1282780800000, 5.796294],[1282867200000, 5.814769],[1282953600000, 5.810920],[1283040000000, 5.810920],[1283126400000, 5.810920],[1283212800000, 5.826264]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });