An An
An An
数据分类过多, 饼图的部分标签不展示和 `Highcharts.js` 的显示策略有关系, 参考: * https://www.highcharts.com/forum/viewtopic.php?t=36587 * https://www.highcharts.com/forum/viewtopic.php?t=43295 * https://www.highcharts.com/forum/viewtopic.php?t=49312 * https://www.highcharts.com/forum/viewtopic.php?t=48844
参考 `Swift` 版本的相同问题: * https://github.com/AAChartModel/AAChartKit-Swift/issues/183 `Kotlin` 版本的禁用图例的点击事件做法与之类似.
饼图禁用图例点击事件的方式稍微特殊一点, 参考: * https://github.com/AAChartModel/AAChartKit-Swift/issues/393
`Java` 版本的写法: ```java //禁用图例点击事件 aaOptions.plotOptions.series.events = new AASeriesEvents() .legendItemClick("function() { " + "return false; " + "}"); ``` **demo** 中有相关示例, 下载运行查看即可.
这个应该是 Highcharts 刻意的默认效果, 参考: * https://github.com/AAChartModel/AAChartKit/issues/949
> 点击了之后看起来是不会隐藏折线了,但是折线的颜色变浅了 参考 `Swift` 版本的相同问题: * https://github.com/AAChartModel/AAChartKit-Swift/issues/300
Refer to: * https://stackoverflow.com/questions/64397169/highcharts-with-a-thick-line-at-0-values-the-line-is-half-hidden
参考: * https://www.highcharts.com/forum/viewtopic.php?t=44150 将参考链接里的这个在线示例, 其中 `tooltip` 的 `formatter` 改成下面这样: ```js formatter: function () { var start = Highcharts.dateFormat('%H:%M', this.point.x); var end = Highcharts.dateFormat('%H:%M', this.point.x2); var duration = (this.point.x2 - this.point.x)...
另外, 参考这个相关提问: * https://github.com/AAChartModel/AAChartKit-Swift/issues/372 你甚至可以直接通过 iOS 的原生代码, 自己绘制 `crosshair 准星线`和 `tooltip 浮动提示框`. 如果你的自定义效果比较**特殊**或**复杂**的话, 可以使用这个方法. 简单一点的话, 上面的那种方法就基本满足需求了.