$(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: [[1443657600000,3.19814],[1443744000000,3.16229],[1443830400000,3.1637],[1443916800000,3.1637],[1444003200000,3.1637],[1444089600000,3.19521],[1444176000000,3.19878],[1444262400000,3.21155],[1444348800000,3.21269],[1444435200000,3.27404],[1444521600000,3.27404],[1444608000000,3.27404],[1444694400000,3.326],[1444780800000,3.34366],[1444867200000,3.34366],[1444953600000,3.32546],[1445040000000,3.24332],[1445126400000,3.24332],[1445212800000,3.24332],[1445299200000,3.28442],[1445385600000,3.35242],[1445472000000,3.44128],[1445558400000,3.379],[1445644800000,3.35426],[1445731200000,3.35426],[1445817600000,3.35426],[1445904000000,3.38079],[1445990400000,3.38995],[1446076800000,3.40081],[1446163200000,3.35685],[1446249600000,3.39674]], 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: [[1443657600000, 3.198142],[1443657600000, 3.198142],[1443744000000, 3.162293],[1443830400000, 3.163697],[1443916800000, 3.163697],[1444003200000, 3.163697],[1444089600000, 3.195214],[1444176000000, 3.198784],[1444262400000, 3.211549],[1444348800000, 3.212693],[1444435200000, 3.274037],[1444521600000, 3.274037],[1444608000000, 3.274037],[1444694400000, 3.326002],[1444780800000, 3.343656],[1444867200000, 3.343656],[1444953600000, 3.325457],[1445040000000, 3.243319],[1445126400000, 3.243319],[1445212800000, 3.243319],[1445299200000, 3.284421],[1445385600000, 3.352415],[1445472000000, 3.441280],[1445558400000, 3.379005],[1445644800000, 3.354260],[1445731200000, 3.354260],[1445817600000, 3.354260],[1445904000000, 3.380787],[1445990400000, 3.389953],[1446076800000, 3.400806],[1446163200000, 3.356851],[1446249600000, 3.396738]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });