$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1514764800000,4.49875],[1514851200000,4.49875],[1514937600000,4.49875],[1515024000000,4.50455],[1515110400000,4.53977],[1515196800000,4.56236],[1515283200000,4.56236],[1515369600000,4.56236],[1515456000000,4.56236],[1515542400000,4.51894],[1515628800000,4.56189],[1515715200000,4.58995],[1515801600000,4.64979],[1515888000000,4.64979],[1515974400000,4.64979],[1516060800000,4.70797],[1516147200000,4.70414],[1516233600000,4.69743],[1516320000000,4.72766],[1516406400000,4.74781],[1516492800000,4.74781],[1516579200000,4.74781],[1516665600000,4.74747],[1516752000000,4.74999],[1516838400000,4.78899],[1516924800000,4.79075],[1517011200000,4.77013],[1517097600000,4.77013],[1517184000000,4.77013],[1517270400000,4.69808],[1517356800000,4.67509]], 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: [[1514764800000, 4.498747],[1514764800000, 4.498747],[1514851200000, 4.498747],[1514937600000, 4.498747],[1515024000000, 4.504553],[1515110400000, 4.539769],[1515196800000, 4.562364],[1515283200000, 4.562364],[1515369600000, 4.562364],[1515456000000, 4.562364],[1515542400000, 4.518942],[1515628800000, 4.561886],[1515715200000, 4.589952],[1515801600000, 4.649793],[1515888000000, 4.649793],[1515974400000, 4.649793],[1516060800000, 4.707974],[1516147200000, 4.704143],[1516233600000, 4.697429],[1516320000000, 4.727661],[1516406400000, 4.747807],[1516492800000, 4.747807],[1516579200000, 4.747807],[1516665600000, 4.747473],[1516752000000, 4.749986],[1516838400000, 4.788989],[1516924800000, 4.790746],[1517011200000, 4.770125],[1517097600000, 4.770125],[1517184000000, 4.770125],[1517270400000, 4.698075],[1517356800000, 4.675095]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });