javascript - 使用 allowHTML 和 useHTMl 导出 highchart 时出错
问题描述
我已经在 Highchart 中设置useHTML
并设置allowHTML
为 true。在视图中,html 已正确呈现,但在使用exportChartLocal()
highchart 导出图表时会引发错误:'Image type not supported for charts with embedded HTML'
。可能是什么原因导致在出口中也有其他方法可以实现相同的目标?代码片段如下:
this.chart.exportChartLocal({
type:'application/pdf',
filname: 'chart'
})
subtitle:{
useHTML: true,
text: 'part1 - xyz
<br> p2 - zzz
<br> pp3 - dd',
style:{ fontSize:10px}
}
exporting{
enabled: false,
allowHTML: true,
fallbackToExportServer: false,
error: (options,err){
console.log(err)
}
}
解决方案
推荐阅读
- r - 在闪亮的仪表板中嵌入图片
- amazon-web-services - 使用 ECS Fargate 进行服务发现
- angular - Ag-grid - 当我将光标悬停在网格行/单元格上时显示上下文菜单
- python - 尝试在 Python 中使用 bcp 将 CSV 上传到数据库时出现问题
- performance - 如何在 ssrs 报告中显示大量数据
- c - SD 在分区或磁盘级别进行磨损均衡工作
- c++ - 在哪里可以找到对通用 c++ 模板参数的要求?
- string - 在 Pyspark 中将缺失的字符串值转换为 isNull
- node.js - MongoDB 向 NodeJS 中的现有用户插入数据
- sql - 动态 sql - 使用循环更新多行