我为报告创建了4个谷歌图表,它工作正常并显示X,Y坐标,但在使用phanthom JS打印时,我得到的X轴坐标仅针对第一个图表,而不是其余的图表。任何想法||建议?
答案 0 :(得分:0)
尝试按照raterize.js示例延迟渲染。
...
page.open(address, function (status) {
if (status !== 'success') {
console.log('Unable to load the address!');
phantom.exit();
} else {
window.setTimeout(function () {
page.render(output);
phantom.exit();
}, 2000);
}
});