$(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: [[1530403200000,26.5101],[1530489600000,26.5101],[1530576000000,26.4051],[1530662400000,26.5083],[1530748800000,26.6324],[1530835200000,26.6483],[1530921600000,26.5195],[1531008000000,26.5195],[1531094400000,26.5195],[1531180800000,26.5721],[1531267200000,26.3532],[1531353600000,26.4118],[1531440000000,26.2641],[1531526400000,26.0965],[1531612800000,26.0965],[1531699200000,26.0965],[1531785600000,26.2606],[1531872000000,26.3544],[1531958400000,26.3033],[1532044800000,26.395],[1532131200000,26.5302],[1532217600000,26.5302],[1532304000000,26.5302],[1532390400000,26.682],[1532476800000,26.7661],[1532563200000,26.8381],[1532649600000,26.8808],[1532736000000,26.8261],[1532822400000,26.8261],[1532908800000,26.8261],[1532995200000,26.9536]], 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: [[1530403200000, 26.510070],[1530403200000, 26.510070],[1530489600000, 26.510070],[1530576000000, 26.405111],[1530662400000, 26.508326],[1530748800000, 26.632430],[1530835200000, 26.648264],[1530921600000, 26.519529],[1531008000000, 26.519529],[1531094400000, 26.519529],[1531180800000, 26.572072],[1531267200000, 26.353166],[1531353600000, 26.411811],[1531440000000, 26.264091],[1531526400000, 26.096500],[1531612800000, 26.096500],[1531699200000, 26.096500],[1531785600000, 26.260614],[1531872000000, 26.354382],[1531958400000, 26.303338],[1532044800000, 26.394988],[1532131200000, 26.530219],[1532217600000, 26.530219],[1532304000000, 26.530219],[1532390400000, 26.681977],[1532476800000, 26.766113],[1532563200000, 26.838093],[1532649600000, 26.880849],[1532736000000, 26.826119],[1532822400000, 26.826119],[1532908800000, 26.826119],[1532995200000, 26.953606]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });