$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1546300800000,28.2481],[1546387200000,28.2481],[1546473600000,28.2481],[1546560000000,27.828],[1546646400000,28.0713],[1546732800000,28.0713],[1546819200000,28.0713],[1546905600000,28.0713],[1546992000000,28.5427],[1547078400000,28.6856],[1547164800000,28.9195],[1547251200000,28.6659],[1547337600000,28.6659],[1547424000000,28.6659],[1547510400000,28.5439],[1547596800000,28.5618],[1547683200000,28.3068],[1547769600000,28.2418],[1547856000000,28.1562],[1547942400000,28.1562],[1548028800000,28.1562],[1548115200000,27.9954],[1548201600000,27.9648],[1548288000000,27.7819],[1548374400000,27.9294],[1548460800000,27.9058],[1548547200000,27.9058],[1548633600000,27.9058],[1548720000000,28.0035],[1548806400000,27.9433],[1548892800000,27.8188]], 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, 28.248096],[1546300800000, 28.248096],[1546387200000, 28.248096],[1546473600000, 28.248096],[1546560000000, 27.828021],[1546646400000, 28.071276],[1546732800000, 28.071276],[1546819200000, 28.071276],[1546905600000, 28.071276],[1546992000000, 28.542697],[1547078400000, 28.685577],[1547164800000, 28.919489],[1547251200000, 28.665866],[1547337600000, 28.665866],[1547424000000, 28.665866],[1547510400000, 28.543922],[1547596800000, 28.561834],[1547683200000, 28.306756],[1547769600000, 28.241779],[1547856000000, 28.156160],[1547942400000, 28.156160],[1548028800000, 28.156160],[1548115200000, 27.995412],[1548201600000, 27.964802],[1548288000000, 27.781924],[1548374400000, 27.929364],[1548460800000, 27.905828],[1548547200000, 27.905828],[1548633600000, 27.905828],[1548720000000, 28.003471],[1548806400000, 27.943315],[1548892800000, 27.818810]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });