javascript - 将 highchart 导出为图像阿拉伯文文本
问题描述
我正在尝试将 highchart 导出到图像,我的 highchart 在导出阿拉伯文本显示为问号后包含阿拉伯标签(标题),我尝试添加(useHTML)并将脚本编码更改为(utf8),它仍然显示为问号。
var options = {
chart: {
style: {
fontFamily: 'arial'
},
height: 300,
events: {
drilldown: function (e) {
generateDrillDownJSON(e, false);
},
drillup: function (e) {
generateDrillDownJSON(e, true);
}
}
},
title: {
text: Var_ChartTitleText,
},
subtitle: {
text: Var_ChartSubtitleText,
},
tooltip: {
formatter: function () {
return this.point.name + ' : ' + this.y + ' %';
}
},
xAxis: {
categories: true
},
drilldown: Var_drilldown,
legend: {
enabled: true
},
plotOptions: {
allowhtml: true,
series: {
dataLabels: {
enabled: true,
formatter: function () {
return this.point.name + ' : ' + this.y + ' %';
}
},
useHTML: true,
shadow: true
},
pie: {
size: '100%',
showInLegend: true
}
},
series: Var_Series
};
解决方案
推荐阅读
- html - 如何将文本块的高度自动调整为 HTML 旁边的图像
- node.js - 困惑NodeJs可执行文件的大小只有32MB左右
- php - AWS Elastic Bean Codigniter 404 问题与除默认控制器之外的所有控制器
- javascript - 无法解析“/path/to/myapp/src”中的“video-react”
- r - 如何使用线性回归预测特定的行和列
- python-2.7 - 如何以允许两位数的特定顺序创建字母数字网格?
- javascript - 带有反应 Bootsrap 的下一个 JS
- laravel - 根据 laravel 中的自定义 date_field 显示行中的最新数据
- python - 最多 N 个项目的组?
- python - 终端中的正则表达式运行 python