$(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: [[1228089600000,1.17467],[1228176000000,1.20872],[1228262400000,1.23394],[1228348800000,1.25068],[1228435200000,1.24709],[1228521600000,1.25125],[1228608000000,1.25125],[1228694400000,1.25125],[1228780800000,1.27663],[1228867200000,1.28039],[1228953600000,1.29673],[1229040000000,1.32797],[1229126400000,1.33815],[1229212800000,1.33815],[1229299200000,1.33815],[1229385600000,1.38792],[1229472000000,1.42179],[1229558400000,1.48414],[1229644800000,1.54581],[1229731200000,1.47427],[1229817600000,1.47427],[1229904000000,1.47427],[1229990400000,1.47687],[1230076800000,1.46081],[1230163200000,1.46451],[1230249600000,1.46451],[1230336000000,1.44759],[1230422400000,1.44759],[1230508800000,1.44759],[1230595200000,1.47483],[1230681600000,1.45699]], 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: [[1228089600000, 1.174665],[1228089600000, 1.174665],[1228176000000, 1.208724],[1228262400000, 1.233937],[1228348800000, 1.250677],[1228435200000, 1.247092],[1228521600000, 1.251250],[1228608000000, 1.251250],[1228694400000, 1.251250],[1228780800000, 1.276635],[1228867200000, 1.280388],[1228953600000, 1.296733],[1229040000000, 1.327974],[1229126400000, 1.338154],[1229212800000, 1.338154],[1229299200000, 1.338154],[1229385600000, 1.387920],[1229472000000, 1.421787],[1229558400000, 1.484138],[1229644800000, 1.545808],[1229731200000, 1.474274],[1229817600000, 1.474274],[1229904000000, 1.474274],[1229990400000, 1.476872],[1230076800000, 1.460808],[1230163200000, 1.464514],[1230249600000, 1.464514],[1230336000000, 1.447594],[1230422400000, 1.447594],[1230508800000, 1.447594],[1230595200000, 1.474827],[1230681600000, 1.456991]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });