$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1519862400000,4.2363],[1519948800000,4.1997],[1520035200000,4.1821],[1520121600000,4.1821],[1520208000000,4.1821],[1520294400000,4.17679],[1520380800000,4.1638],[1520467200000,4.12834],[1520553600000,4.12834],[1520640000000,4.12834],[1520726400000,4.12834],[1520812800000,4.12834],[1520899200000,4.09476],[1520985600000,4.09873],[1521072000000,4.12052],[1521158400000,4.15862],[1521244800000,4.16629],[1521331200000,4.16629],[1521417600000,4.16629],[1521504000000,4.17481],[1521590400000,4.15302],[1521676800000,4.15183],[1521763200000,4.14453],[1521849600000,4.15869],[1521936000000,4.15869],[1522022400000,4.15869],[1522108800000,4.18952],[1522195200000,4.18843],[1522281600000,4.19864],[1522368000000,4.22164],[1522454400000,4.18404]], 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: [[1519862400000, 4.236302],[1519862400000, 4.236302],[1519948800000, 4.199695],[1520035200000, 4.182103],[1520121600000, 4.182103],[1520208000000, 4.182103],[1520294400000, 4.176790],[1520380800000, 4.163805],[1520467200000, 4.128340],[1520553600000, 4.128340],[1520640000000, 4.128340],[1520726400000, 4.128340],[1520812800000, 4.128340],[1520899200000, 4.094761],[1520985600000, 4.098727],[1521072000000, 4.120515],[1521158400000, 4.158618],[1521244800000, 4.166295],[1521331200000, 4.166295],[1521417600000, 4.166295],[1521504000000, 4.174808],[1521590400000, 4.153022],[1521676800000, 4.151833],[1521763200000, 4.144534],[1521849600000, 4.158687],[1521936000000, 4.158687],[1522022400000, 4.158687],[1522108800000, 4.189515],[1522195200000, 4.188427],[1522281600000, 4.198642],[1522368000000, 4.221645],[1522454400000, 4.184039]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });