$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1546300800000,0.250903],[1546387200000,0.250903],[1546473600000,0.250903],[1546560000000,0.255464],[1546646400000,0.256469],[1546732800000,0.256469],[1546819200000,0.256469],[1546905600000,0.256469],[1546992000000,0.257586],[1547078400000,0.258331],[1547164800000,0.261505],[1547251200000,0.259946],[1547337600000,0.259946],[1547424000000,0.259946],[1547510400000,0.259298],[1547596800000,0.259456],[1547683200000,0.257436],[1547769600000,0.257742],[1547856000000,0.25568],[1547942400000,0.25568],[1548028800000,0.25568],[1548115200000,0.254857],[1548201600000,0.254913],[1548288000000,0.252533],[1548374400000,0.253256],[1548460800000,0.253059],[1548547200000,0.253059],[1548633600000,0.253059],[1548720000000,0.253968],[1548806400000,0.253709],[1548892800000,0.253612]], 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, 0.250903],[1546300800000, 0.250903],[1546387200000, 0.250903],[1546473600000, 0.250903],[1546560000000, 0.255464],[1546646400000, 0.256469],[1546732800000, 0.256469],[1546819200000, 0.256469],[1546905600000, 0.256469],[1546992000000, 0.257586],[1547078400000, 0.258331],[1547164800000, 0.261505],[1547251200000, 0.259946],[1547337600000, 0.259946],[1547424000000, 0.259946],[1547510400000, 0.259298],[1547596800000, 0.259456],[1547683200000, 0.257436],[1547769600000, 0.257742],[1547856000000, 0.255680],[1547942400000, 0.255680],[1548028800000, 0.255680],[1548115200000, 0.254857],[1548201600000, 0.254913],[1548288000000, 0.252533],[1548374400000, 0.253256],[1548460800000, 0.253059],[1548547200000, 0.253059],[1548633600000, 0.253059],[1548720000000, 0.253968],[1548806400000, 0.253709],[1548892800000, 0.253612]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });