$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1546300800000,3.17975],[1546387200000,3.17975],[1546473600000,3.17975],[1546560000000,3.14997],[1546646400000,3.20301],[1546732800000,3.20301],[1546819200000,3.20301],[1546905600000,3.20301],[1546992000000,3.27971],[1547078400000,3.29831],[1547164800000,3.34482],[1547251200000,3.32758],[1547337600000,3.32758],[1547424000000,3.32758],[1547510400000,3.28348],[1547596800000,3.29639],[1547683200000,3.27645],[1547769600000,3.27394],[1547856000000,3.28167],[1547942400000,3.28167],[1548028800000,3.28167],[1548115200000,3.25902],[1548201600000,3.24425],[1548288000000,3.22774],[1548374400000,3.23945],[1548460800000,3.25225],[1548547200000,3.25225],[1548633600000,3.25225],[1548720000000,3.26045],[1548806400000,3.26905],[1548892800000,3.27238]], 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, 3.179745],[1546300800000, 3.179745],[1546387200000, 3.179745],[1546473600000, 3.179745],[1546560000000, 3.149966],[1546646400000, 3.203008],[1546732800000, 3.203008],[1546819200000, 3.203008],[1546905600000, 3.203008],[1546992000000, 3.279709],[1547078400000, 3.298307],[1547164800000, 3.344816],[1547251200000, 3.327577],[1547337600000, 3.327577],[1547424000000, 3.327577],[1547510400000, 3.283478],[1547596800000, 3.296395],[1547683200000, 3.276452],[1547769600000, 3.273939],[1547856000000, 3.281671],[1547942400000, 3.281671],[1548028800000, 3.281671],[1548115200000, 3.259016],[1548201600000, 3.244247],[1548288000000, 3.227741],[1548374400000, 3.239448],[1548460800000, 3.252253],[1548547200000, 3.252253],[1548633600000, 3.252253],[1548720000000, 3.260453],[1548806400000, 3.269053],[1548892800000, 3.272379]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });