gpt4 book ai didi

javascript - 如何向 ember highchart 图表添加旋转事件?

转载 作者:行者123 更新时间:2023-11-27 22:35:47 24 4
gpt4 key购买 nike

在 highchart 站点中,他们有一个可拖动分散框的示例,您可以在其中进行 3d 旋转

http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/3d-scatter-draggable/

我能够使用ember-highchart创建3D图表,但是我还没有弄清楚如何在ember中添加旋转事件。做这样的事情最好的方法是什么?

这是我的组件,其中包含ember-highchart

tried-graph.hbs

{{high-charts mode=mode chartOptions=chartOptions content=content}}

third-graph.js

chartOptions: Ember.computed('array', function(){
return {

chart: {
renderTo: 'container',
margin: 100,
type: 'scatter',
options3d: {
enabled: true,
alpha: 10,
beta: 30,
depth: 250,
viewDistance: 5,
fitToPlot: false,
frame: {
bottom: { size: 1, color: 'rgba(0,0,0,0.02)' },
back: { size: 1, color: 'rgba(0,0,0,0.04)' },
side: { size: 1, color: 'rgba(0,0,0,0.06)' }
}
}
},
title: {
text: 'XYZ'
},
subtitle: {
text: 'Click on point to find coordinates'
},
plotOptions: {
scatter: {
width: 10,
height: 10,
depth: 10
}
},
yAxis: {
min: -10,
max: 10,
title: null
},
xAxis: {
min: -10,
max: 10,
gridLineWidth: 1
},
zAxis: {
min: -10,
max: 10,
showFirstLabel: false
},
legend: {
enabled: false
},
series: [{
name: 'Reading',
colorByPoint: true,
data: this.get('array')
}]

}
})

最佳答案

你可以使用 Ember 来做到这一点。$

关于javascript - 如何向 ember highchart 图表添加旋转事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39107525/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com