Chrome:将Highcharts导出为svg格式,以获取某些图表出错

时间:2018-08-16 08:40:03

标签: javascript highcharts

当我在IE中将相同的图表导出到SVG时,可以正常工作,但是当我在chrome中尝试时,出现以下错误。

第1行第12202列的错误:xmlParseEntityRef:无名称

欢迎提出任何建议。

这是我的代码中的SVG导出部分:

renderedChart = new Highcharts.Chart(chartOptions);
if (type === 'svg') {
     renderedChart.exportChart({
                   'type': 'image/svg+xml'
                 }, {
                   title: {
                         style: {
                                 display: 'visible'
                                }
                           }
                });
   }

For image, please click here

0 个答案:

没有答案