$(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: [[1477958400000,18.313],[1478044800000,null],[1478131200000,18.4618],[1478217600000,18.4699],[1478304000000,18.4747],[1478390400000,18.4747],[1478476800000,18.4747],[1478563200000,18.3964],[1478649600000,18.3858],[1478736000000,18.3368],[1478822400000,18.1584],[1478908800000,18.1961],[1478995200000,18.1961],[1479081600000,18.1961],[1479168000000,18.1874],[1479254400000,18.4197],[1479340800000,18.5812],[1479427200000,18.3936],[1479513600000,18.2194],[1479600000000,18.2194],[1479686400000,18.2194],[1479772800000,18.1228],[1479859200000,18.0101],[1479945600000,17.9228],[1480032000000,17.8661],[1480118400000,18.0064],[1480204800000,18.0064],[1480291200000,18.0064],[1480377600000,17.9756],[1480464000000,17.9143]], 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: [[1477958400000, 18.313028],[1477958400000, 18.313028],[1478131200000, 18.461817],[1478217600000, 18.469942],[1478304000000, 18.474747],[1478390400000, 18.474747],[1478476800000, 18.474747],[1478563200000, 18.396369],[1478649600000, 18.385828],[1478736000000, 18.336778],[1478822400000, 18.158370],[1478908800000, 18.196098],[1478995200000, 18.196098],[1479081600000, 18.196098],[1479168000000, 18.187368],[1479254400000, 18.419722],[1479340800000, 18.581222],[1479427200000, 18.393590],[1479513600000, 18.219421],[1479600000000, 18.219421],[1479686400000, 18.219421],[1479772800000, 18.122828],[1479859200000, 18.010111],[1479945600000, 17.922829],[1480032000000, 17.866069],[1480118400000, 18.006418],[1480204800000, 18.006418],[1480291200000, 18.006418],[1480377600000, 17.975586],[1480464000000, 17.914311]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });