$(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: [[1351728000000,1.39217],[1351814400000,1.39026],[1351900800000,1.37688],[1351987200000,1.37688],[1352073600000,1.37688],[1352160000000,1.36919],[1352246400000,1.37142],[1352332800000,1.36578],[1352419200000,1.36476],[1352505600000,1.36048],[1352592000000,1.36048],[1352678400000,1.36048],[1352764800000,1.36491],[1352851200000,1.36082],[1352937600000,1.36387],[1353024000000,1.36698],[1353110400000,1.36583],[1353196800000,1.36583],[1353283200000,1.36583],[1353369600000,1.36767],[1353456000000,1.37275],[1353542400000,1.37247],[1353628800000,1.38184],[1353715200000,1.38352],[1353801600000,1.38352],[1353888000000,1.38352],[1353974400000,1.3894],[1354060800000,1.38906],[1354147200000,1.38135],[1354233600000,1.39217]], 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: [[1351728000000, 1.392169],[1351728000000, 1.392169],[1351814400000, 1.390259],[1351900800000, 1.376884],[1351987200000, 1.376884],[1352073600000, 1.376884],[1352160000000, 1.369191],[1352246400000, 1.371416],[1352332800000, 1.365777],[1352419200000, 1.364760],[1352505600000, 1.360479],[1352592000000, 1.360479],[1352678400000, 1.360479],[1352764800000, 1.364909],[1352851200000, 1.360821],[1352937600000, 1.363872],[1353024000000, 1.366977],[1353110400000, 1.365835],[1353196800000, 1.365835],[1353283200000, 1.365835],[1353369600000, 1.367675],[1353456000000, 1.372749],[1353542400000, 1.372467],[1353628800000, 1.381844],[1353715200000, 1.383521],[1353801600000, 1.383521],[1353888000000, 1.383521],[1353974400000, 1.389397],[1354060800000, 1.389057],[1354147200000, 1.381351],[1354233600000, 1.392165]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });