Javascript Chrome:将Highcharts导出为svg格式,用于某些图表获取错误
当我在IE中将相同的highcharts导出到SVG中时,它可以正常工作,但当我在chrome中尝试时,我得到如下所示的错误 “第12202列第1行出错:xmlParseEntityRef:无名称” 欢迎提出任何建议 以下是我的代码的SVG导出部分:Javascript Chrome:将Highcharts导出为svg格式,用于某些图表获取错误,javascript,highcharts,Javascript,Highcharts,当我在IE中将相同的highcharts导出到SVG中时,它可以正常工作,但当我在chrome中尝试时,我得到如下所示的错误 “第12202列第1行出错:xmlParseEntityRef:无名称” 欢迎提出任何建议 以下是我的代码的SVG导出部分: renderedChart = new Highcharts.Chart(chartOptions); if (type === 'svg') { renderedChart.exportChart({
renderedChart = new Highcharts.Chart(chartOptions);
if (type === 'svg') {
renderedChart.exportChart({
'type': 'image/svg+xml'
}, {
title: {
style: {
display: 'visible'
}
}
});
}
您能描述一下错误吗?“第1行第12202列的错误:xmlParseEntityRef:no name”这是我得到的错误。当您的xmlHi Pooja Mgr中出现语法错误时,会发生此错误,这里的一切似乎都正常:您能在这个示例中重现您的问题吗?通过添加属性“allowtml”修复了我的问题:真的,谢谢大家的建议