$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1554076800000,7.10818],[1554163200000,7.10669],[1554249600000,7.03352],[1554336000000,7.09231],[1554422400000,7.06799],[1554508800000,7.00965],[1554595200000,7.00965],[1554681600000,7.00965],[1554768000000,6.98673],[1554854400000,7.02244],[1554940800000,7.04795],[1555027200000,7.05648],[1555113600000,7.06673],[1555200000000,7.06673],[1555286400000,7.06673],[1555372800000,7.09616],[1555459200000,7.06755],[1555545600000,7.05802],[1555632000000,7.0566],[1555718400000,7.06089],[1555804800000,7.06089],[1555891200000,7.06089],[1555977600000,7.04022],[1556064000000,7.00137],[1556150400000,6.94924],[1556236800000,6.89375],[1556323200000,6.87867],[1556409600000,6.87867],[1556496000000,6.87867],[1556582400000,6.87867]], 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, 7.108177],[1554076800000, 7.108177],[1554163200000, 7.106690],[1554249600000, 7.033515],[1554336000000, 7.092314],[1554422400000, 7.067989],[1554508800000, 7.009648],[1554595200000, 7.009648],[1554681600000, 7.009648],[1554768000000, 6.986732],[1554854400000, 7.022438],[1554940800000, 7.047954],[1555027200000, 7.056482],[1555113600000, 7.066729],[1555200000000, 7.066729],[1555286400000, 7.066729],[1555372800000, 7.096155],[1555459200000, 7.067550],[1555545600000, 7.058021],[1555632000000, 7.056598],[1555718400000, 7.060888],[1555804800000, 7.060888],[1555891200000, 7.060888],[1555977600000, 7.040222],[1556064000000, 7.001368],[1556150400000, 6.949236],[1556236800000, 6.893755],[1556323200000, 6.878671],[1556409600000, 6.878671],[1556496000000, 6.878671],[1556582400000, 6.878671]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });