$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1535760000000,36.6721],[1535846400000,36.6721],[1535932800000,36.6721],[1536019200000,36.5407],[1536105600000,36.5804],[1536192000000,36.4297],[1536278400000,36.5565],[1536364800000,36.7738],[1536451200000,36.7738],[1536537600000,36.7738],[1536624000000,36.5245],[1536710400000,36.509],[1536796800000,36.4697],[1536883200000,36.7229],[1536969600000,36.8796],[1537056000000,36.8796],[1537142400000,36.8796],[1537228800000,36.9358],[1537315200000,37.0134],[1537401600000,36.9404],[1537488000000,37.2796],[1537574400000,36.9118],[1537660800000,36.9118],[1537747200000,36.9118],[1537833600000,36.9952],[1537920000000,36.9558],[1538006400000,37.0804],[1538092800000,37.2346],[1538179200000,36.8819],[1538265600000,36.8819]], 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, 36.672109],[1535760000000, 36.672109],[1535846400000, 36.672109],[1535932800000, 36.672109],[1536019200000, 36.540703],[1536105600000, 36.580424],[1536192000000, 36.429744],[1536278400000, 36.556529],[1536364800000, 36.773756],[1536451200000, 36.773756],[1536537600000, 36.773756],[1536624000000, 36.524531],[1536710400000, 36.509031],[1536796800000, 36.469686],[1536883200000, 36.722905],[1536969600000, 36.879631],[1537056000000, 36.879631],[1537142400000, 36.879631],[1537228800000, 36.935848],[1537315200000, 37.013402],[1537401600000, 36.940361],[1537488000000, 37.279593],[1537574400000, 36.911790],[1537660800000, 36.911790],[1537747200000, 36.911790],[1537833600000, 36.995232],[1537920000000, 36.955757],[1538006400000, 37.080439],[1538092800000, 37.234639],[1538179200000, 36.881857],[1538265600000, 36.881857]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });