$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1462060800000,3.13414],[1462147200000,3.13414],[1462233600000,3.13414],[1462320000000,3.13414],[1462406400000,3.12935],[1462492800000,3.10432],[1462579200000,3.09999],[1462665600000,3.09999],[1462752000000,3.09999],[1462838400000,3.09999],[1462924800000,3.08916],[1463011200000,3.10956],[1463097600000,3.10172],[1463184000000,3.09622],[1463270400000,3.09622],[1463356800000,3.09622],[1463443200000,3.07989],[1463529600000,3.05888],[1463616000000,3.04599],[1463702400000,3.01819],[1463788800000,3.02107],[1463875200000,null],[1463961600000,3.02107],[1464048000000,3.01544],[1464134400000,3.01626],[1464220800000,3.02106],[1464307200000,3.01838],[1464393600000,3.02914],[1464480000000,3.02914],[1464566400000,3.02914],[1464652800000,3.01976]], 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: [[1462060800000, 3.134138],[1462060800000, 3.134138],[1462147200000, 3.134138],[1462233600000, 3.134138],[1462320000000, 3.134138],[1462406400000, 3.129350],[1462492800000, 3.104318],[1462579200000, 3.099995],[1462665600000, 3.099995],[1462752000000, 3.099995],[1462838400000, 3.099995],[1462924800000, 3.089160],[1463011200000, 3.109562],[1463097600000, 3.101717],[1463184000000, 3.096224],[1463270400000, 3.096224],[1463356800000, 3.096224],[1463443200000, 3.079889],[1463529600000, 3.058876],[1463616000000, 3.045992],[1463702400000, 3.018189],[1463788800000, 3.021068],[1463961600000, 3.021068],[1464048000000, 3.015435],[1464134400000, 3.016261],[1464220800000, 3.021057],[1464307200000, 3.018378],[1464393600000, 3.029136],[1464480000000, 3.029136],[1464566400000, 3.029136],[1464652800000, 3.019758]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });