AAChartCore-Kotlin
AAChartCore-Kotlin copied to clipboard
events 中的 proxyOver该如何使用?
js中是这么使用的 1 #
plotOptions: {
series: {
events: {
mouseOver: function () {
report.innerHTML = 'Moused over';
report.style.color = 'green';
},
mouseOut: function () {
report.innerHTML = 'Moused out';
report.style.color = 'red';
}
}
}
},
想在Android里监听到hover事件,然后去执行自己kotlin的函数,该如何实现呢?
还有一个问题就是例如手机上手指滑动柱状图时,一般来说收到hover事件的柱子会更改柱子颜色,但是现在我手指离开了屏幕,点击了图表外的自己原生的view,能否把图表内的被hover住的柱子状态恢复默认? 我现在的处理方式是通过在其他原生view点击的时候,通过aa_refreshChartWithChartOptions函数刷新图表来达到这个目的,是否有更好的处理方式? @AAChartModel
但是现在我手指离开了屏幕,点击了图表外的自己原生的view,能否把图表内的被hover住的柱子状态恢复默认?
参考:
- https://stackoverflow.com/questions/24701587/highcharts-highlight-entire-series-when-hover-and-restore-state-when-out