typescript - Angular Highcharts 不呈现 3d 视图(来自 highcharts 包)
问题描述
参考github问题链接:https ://github.com/highcharts/highcharts/issues/12598
描述:当使用 3d 柱、3d 圆柱或 3d 饼图时,虽然设置了 3d 选项,但会渲染 2d 视图而不是 3d 视图。
相关代码
const options: any = {
chart: {
renderTo: 'container',
type: 'column',
options3d: {
enabled: true,
alpha: 15,
beta: 15,
depth: 50,
viewDistance: 25
}
},
title: {
text: 'Chart rotation demo'
},
subtitle: {
text: 'Test options by dragging the sliders below'
},
plotOptions: {
column: {
depth: 25
}
},
series: [{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
}]
};
Highcharts.chart('columnChart', options);
解决方案
推荐阅读
- mysql - 没有该功能的 MySQL Percentage Rank
- socket.io - 设置客户端与套接字服务器断开连接的时间条件
- reporting-services - 带有“允许 Null”的 SSRS 级联参数 - 仅在所选参数值不为空时启用
- css - 我的浮动图标位于我网站内容的后面
- python - 多处理时如何解决“无法序列化'_io.BufferedReader'对象”?
- asp.net - 如何使用 parsley.js 验证 TreeView?
- git - 如何列出作者插入的行,不包括文件?
- c# - 数据库中的某些属性在具有值时为空
- firebase - 何时在 noSQL 中复制数据?
- html - 如何创建多步骤表单