$(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: [[1535760000000,20.6136],[1535846400000,20.6136],[1535932800000,20.6136],[1536019200000,20.6872],[1536105600000,20.7049],[1536192000000,20.6115],[1536278400000,20.5228],[1536364800000,20.5494],[1536451200000,20.5494],[1536537600000,20.5494],[1536624000000,20.4378],[1536710400000,20.3938],[1536796800000,20.3626],[1536883200000,20.5066],[1536969600000,20.5514],[1537056000000,20.5514],[1537142400000,20.5514],[1537228800000,20.4949],[1537315200000,20.5403],[1537401600000,20.5139],[1537488000000,20.559],[1537574400000,20.5705],[1537660800000,20.5705],[1537747200000,20.5705],[1537833600000,20.6059],[1537920000000,20.5482],[1538006400000,20.6098],[1538092800000,20.7366],[1538179200000,20.6612],[1538265600000,20.6612]], 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: [[1535760000000, 20.613561],[1535760000000, 20.613561],[1535846400000, 20.613561],[1535932800000, 20.613561],[1536019200000, 20.687201],[1536105600000, 20.704920],[1536192000000, 20.611500],[1536278400000, 20.522836],[1536364800000, 20.549431],[1536451200000, 20.549431],[1536537600000, 20.549431],[1536624000000, 20.437815],[1536710400000, 20.393768],[1536796800000, 20.362642],[1536883200000, 20.506579],[1536969600000, 20.551435],[1537056000000, 20.551435],[1537142400000, 20.551435],[1537228800000, 20.494933],[1537315200000, 20.540349],[1537401600000, 20.513877],[1537488000000, 20.559009],[1537574400000, 20.570465],[1537660800000, 20.570465],[1537747200000, 20.570465],[1537833600000, 20.605936],[1537920000000, 20.548210],[1538006400000, 20.609755],[1538092800000, 20.736589],[1538179200000, 20.661198],[1538265600000, 20.661198]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });