$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1535760000000,29.1725],[1535846400000,29.1725],[1535932800000,29.1725],[1536019200000,29.2371],[1536105600000,29.2546],[1536192000000,29.1515],[1536278400000,29.1233],[1536364800000,29.2679],[1536451200000,29.2679],[1536537600000,29.2679],[1536624000000,28.9616],[1536710400000,28.8381],[1536796800000,28.7916],[1536883200000,29.0132],[1536969600000,29.1884],[1537056000000,29.1884],[1537142400000,29.1884],[1537228800000,29.2157],[1537315200000,29.2826],[1537401600000,29.0232],[1537488000000,29.1955],[1537574400000,29.39],[1537660800000,29.39],[1537747200000,29.39],[1537833600000,29.3137],[1537920000000,29.0504],[1538006400000,29.0538],[1538092800000,29.1344],[1538179200000,28.9195],[1538265600000,28.9195]], 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, 29.172548],[1535760000000, 29.172548],[1535846400000, 29.172548],[1535932800000, 29.172548],[1536019200000, 29.237103],[1536105600000, 29.254594],[1536192000000, 29.151541],[1536278400000, 29.123314],[1536364800000, 29.267871],[1536451200000, 29.267871],[1536537600000, 29.267871],[1536624000000, 28.961583],[1536710400000, 28.838120],[1536796800000, 28.791551],[1536883200000, 29.013214],[1536969600000, 29.188360],[1537056000000, 29.188360],[1537142400000, 29.188360],[1537228800000, 29.215677],[1537315200000, 29.282555],[1537401600000, 29.023216],[1537488000000, 29.195537],[1537574400000, 29.390043],[1537660800000, 29.390043],[1537747200000, 29.390043],[1537833600000, 29.313724],[1537920000000, 29.050357],[1538006400000, 29.053791],[1538092800000, 29.134443],[1538179200000, 28.919470],[1538265600000, 28.919470]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });