angular - Angular 9 Highcharts - 当使用带有类型规的系列类型饼图时,饼图的 innerSize 不起作用
问题描述
在我更新到 hicharts v8.0.1 之后。与 'gauge' 系列一起使用时,'pie' 系列的 innerSize 什么也不做。有什么解决方案吗?
唯一可行的方法是降级,但我不想这样做。
pane: {
center: ['50%', '75%'],
size: '125%',
startAngle: -90,
endAngle: 90,
},
plotOptions: {
pie: {
dataLabels: {
connectorWidth: 0,
style: { fontWeight: 'medium', color: '#4A4A4A' },
formatter: function(): any {
return this.point.options.name;
},
distance: -1,
y: -20,
x: -3,
},
startAngle: -90,
endAngle: 90,
innerSize: '65%',
center: ['50%', '85%'],
},
gauge: {
dataLabels: {
enabled: false,
},
dial: {
radius: this.chartSizeOptions.dialRadius,
},
},
},
chart: {
type: 'gauge',
},
series: [
{
type: 'pie',
innerSize: '60%',
size: '140%',
keys: ['y', 'id', 'color', 'name'],
data: seriesData,
enableMouseTracking: false,
},
{
type: 'gauge',
name: '% over/under goal',
animation: false,
data: [this.calculateGaugePoint(goalCostDiffPct)],
},
],
};
我发现这个例子http://jsfiddle.net/ymf2zzn1/1/为了看到这个问题
解决方案
这看起来像一个 Highcharts 错误,所以我在这里报告了它:https ://github.com/highcharts/highcharts/issues/13629
该问题从 8.0.1 版本开始出现,因此您可以使用 8.0.0 版本作为解决方法。
推荐阅读
- scala - 如何在 spark graphx 中使用 pregel 处理分层数据时仅指定一个根(如果数据中存在多个根)
- c# - AMO OLAP 查询绑定
- python-3.x - 如何让导演使用 IMBdPY 作为列表?
- java - 如何在android中获取实际时间和日期?
- python - 如何在 Firefox 或 Chrome 中使用 Selenium webdriver 更改屏幕截图的目标目录
- javascript - Angular6:控制应用程序内部的数据共享
- angularjs - kendogrid 自定义验证消息和样式
- javascript - 使具有形状响应的画布
- java - 使用休眠更新mysql数据库时锁定行
- java - 解耦与输入数据相关的对象构造