$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1546300800000,0.39827],[1546387200000,0.39827],[1546473600000,0.39827],[1546560000000,0.39602],[1546646400000,0.39887],[1546732800000,0.39887],[1546819200000,0.39887],[1546905600000,0.39887],[1546992000000,0.40339],[1547078400000,0.41924],[1547164800000,0.42282],[1547251200000,0.42073],[1547337600000,0.42073],[1547424000000,0.42073],[1547510400000,0.41707],[1547596800000,0.41989],[1547683200000,0.41953],[1547769600000,0.42191],[1547856000000,0.42184],[1547942400000,0.42184],[1548028800000,0.42184],[1548115200000,0.42114],[1548201600000,0.41917],[1548288000000,0.41765],[1548374400000,0.421],[1548460800000,0.422],[1548547200000,0.422],[1548633600000,0.422],[1548720000000,0.42151],[1548806400000,0.41862],[1548892800000,0.41991]], 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.398270],[1546300800000, 0.398270],[1546387200000, 0.398270],[1546473600000, 0.398270],[1546560000000, 0.396020],[1546646400000, 0.398870],[1546732800000, 0.398870],[1546819200000, 0.398870],[1546905600000, 0.398870],[1546992000000, 0.403390],[1547078400000, 0.419240],[1547164800000, 0.422820],[1547251200000, 0.420730],[1547337600000, 0.420730],[1547424000000, 0.420730],[1547510400000, 0.417070],[1547596800000, 0.419890],[1547683200000, 0.419530],[1547769600000, 0.421910],[1547856000000, 0.421840],[1547942400000, 0.421840],[1548028800000, 0.421840],[1548115200000, 0.421140],[1548201600000, 0.419170],[1548288000000, 0.417650],[1548374400000, 0.421000],[1548460800000, 0.422000],[1548547200000, 0.422000],[1548633600000, 0.422000],[1548720000000, 0.421510],[1548806400000, 0.418620],[1548892800000, 0.419910]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });