$(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: [[1546300800000,4.02576],[1546387200000,4.02576],[1546473600000,4.02576],[1546560000000,4.00162],[1546646400000,4.03641],[1546732800000,4.03641],[1546819200000,4.03641],[1546905600000,4.03641],[1546992000000,4.08892],[1547078400000,4.11806],[1547164800000,4.16933],[1547251200000,4.16697],[1547337600000,4.16697],[1547424000000,4.16697],[1547510400000,4.14134],[1547596800000,4.16648],[1547683200000,4.14174],[1547769600000,4.13999],[1547856000000,4.12774],[1547942400000,4.12774],[1548028800000,4.12774],[1548115200000,4.11134],[1548201600000,4.09746],[1548288000000,4.08192],[1548374400000,4.09038],[1548460800000,4.11498],[1548547200000,4.11498],[1548633600000,4.11498],[1548720000000,4.12104],[1548806400000,4.12355],[1548892800000,4.13222]], 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: [[1546300800000, 4.025761],[1546300800000, 4.025761],[1546387200000, 4.025761],[1546473600000, 4.025761],[1546560000000, 4.001622],[1546646400000, 4.036411],[1546732800000, 4.036411],[1546819200000, 4.036411],[1546905600000, 4.036411],[1546992000000, 4.088917],[1547078400000, 4.118056],[1547164800000, 4.169334],[1547251200000, 4.166965],[1547337600000, 4.166965],[1547424000000, 4.166965],[1547510400000, 4.141342],[1547596800000, 4.166485],[1547683200000, 4.141744],[1547769600000, 4.139995],[1547856000000, 4.127744],[1547942400000, 4.127744],[1548028800000, 4.127744],[1548115200000, 4.111344],[1548201600000, 4.097457],[1548288000000, 4.081923],[1548374400000, 4.090381],[1548460800000, 4.114981],[1548547200000, 4.114981],[1548633600000, 4.114981],[1548720000000, 4.121035],[1548806400000, 4.123552],[1548892800000, 4.132217]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });