$(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: [[1554076800000,3.16486],[1554163200000,3.16992],[1554249600000,3.13246],[1554336000000,3.16441],[1554422400000,3.14782],[1554508800000,3.11244],[1554595200000,3.11244],[1554681600000,3.11244],[1554768000000,3.11137],[1554854400000,3.12976],[1554940800000,3.14808],[1555027200000,3.152],[1555113600000,3.14963],[1555200000000,3.14963],[1555286400000,3.14963],[1555372800000,3.15882],[1555459200000,3.15113],[1555545600000,3.14891],[1555632000000,3.14576],[1555718400000,3.14767],[1555804800000,3.14767],[1555891200000,3.14767],[1555977600000,3.13846],[1556064000000,3.13117],[1556150400000,3.10289],[1556236800000,3.06387],[1556323200000,3.05157],[1556409600000,3.05157],[1556496000000,3.05157],[1556582400000,3.05157]], 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: [[1554076800000, 3.164865],[1554076800000, 3.164865],[1554163200000, 3.169917],[1554249600000, 3.132465],[1554336000000, 3.164408],[1554422400000, 3.147819],[1554508800000, 3.112440],[1554595200000, 3.112440],[1554681600000, 3.112440],[1554768000000, 3.111365],[1554854400000, 3.129763],[1554940800000, 3.148079],[1555027200000, 3.151996],[1555113600000, 3.149633],[1555200000000, 3.149633],[1555286400000, 3.149633],[1555372800000, 3.158823],[1555459200000, 3.151126],[1555545600000, 3.148910],[1555632000000, 3.145759],[1555718400000, 3.147671],[1555804800000, 3.147671],[1555891200000, 3.147671],[1555977600000, 3.138458],[1556064000000, 3.131166],[1556150400000, 3.102888],[1556236800000, 3.063875],[1556323200000, 3.051573],[1556409600000, 3.051573],[1556496000000, 3.051573],[1556582400000, 3.051573]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });