$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1530403200000,0.09358],[1530489600000,0.09358],[1530576000000,0.092575],[1530662400000,0.093716],[1530748800000,0.094516],[1530835200000,0.095825],[1530921600000,0.095122],[1531008000000,0.095122],[1531094400000,0.095122],[1531180800000,0.095885],[1531267200000,0.094504],[1531353600000,0.0948],[1531440000000,0.094001],[1531526400000,0.094252],[1531612800000,0.094252],[1531699200000,0.094252],[1531785600000,0.095345],[1531872000000,0.094936],[1531958400000,0.094279],[1532044800000,0.094165],[1532131200000,0.094778],[1532217600000,0.094778],[1532304000000,0.094778],[1532390400000,0.095051],[1532476800000,0.095268],[1532563200000,0.095504],[1532649600000,0.096245],[1532736000000,0.096272],[1532822400000,0.096272],[1532908800000,0.096272],[1532995200000,0.097077]], 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, 0.093580],[1530403200000, 0.093580],[1530489600000, 0.093580],[1530576000000, 0.092575],[1530662400000, 0.093716],[1530748800000, 0.094516],[1530835200000, 0.095825],[1530921600000, 0.095122],[1531008000000, 0.095122],[1531094400000, 0.095122],[1531180800000, 0.095885],[1531267200000, 0.094504],[1531353600000, 0.094800],[1531440000000, 0.094001],[1531526400000, 0.094252],[1531612800000, 0.094252],[1531699200000, 0.094252],[1531785600000, 0.095345],[1531872000000, 0.094936],[1531958400000, 0.094279],[1532044800000, 0.094165],[1532131200000, 0.094778],[1532217600000, 0.094778],[1532304000000, 0.094778],[1532390400000, 0.095051],[1532476800000, 0.095268],[1532563200000, 0.095504],[1532649600000, 0.096245],[1532736000000, 0.096272],[1532822400000, 0.096272],[1532908800000, 0.096272],[1532995200000, 0.097077]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });