$(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: [[1556668800000,3.93305],[1556755200000,3.93305],[1556841600000,3.94342],[1556928000000,3.93203],[1557014400000,3.93203],[1557100800000,3.93203],[1557187200000,3.91611],[1557273600000,3.89134],[1557360000000,3.87159],[1557446400000,3.87159],[1557532800000,3.84053],[1557619200000,3.84053],[1557705600000,3.84053],[1557792000000,3.79703],[1557878400000,3.8019],[1557964800000,3.83413],[1558051200000,3.82939],[1558137600000,3.81365],[1558224000000,3.81365],[1558310400000,3.81365],[1558396800000,3.78888],[1558483200000,3.78097],[1558569600000,3.81089],[1558656000000,3.80692],[1558742400000,3.83614],[1558828800000,3.83614],[1558915200000,3.83614],[1559001600000,3.81592],[1559088000000,3.82103],[1559174400000,3.86191],[1559260800000,3.8906]], 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: [[1556668800000, 3.933054],[1556668800000, 3.933054],[1556755200000, 3.933054],[1556841600000, 3.943421],[1556928000000, 3.932026],[1557014400000, 3.932026],[1557100800000, 3.932026],[1557187200000, 3.916113],[1557273600000, 3.891337],[1557360000000, 3.871593],[1557446400000, 3.871593],[1557532800000, 3.840530],[1557619200000, 3.840530],[1557705600000, 3.840530],[1557792000000, 3.797027],[1557878400000, 3.801901],[1557964800000, 3.834135],[1558051200000, 3.829391],[1558137600000, 3.813652],[1558224000000, 3.813652],[1558310400000, 3.813652],[1558396800000, 3.788881],[1558483200000, 3.780972],[1558569600000, 3.810886],[1558656000000, 3.806920],[1558742400000, 3.836144],[1558828800000, 3.836144],[1558915200000, 3.836144],[1559001600000, 3.815919],[1559088000000, 3.821033],[1559174400000, 3.861908],[1559260800000, 3.890605]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });