An An
An An
```kotlin val aaOptions = aaChartModel.aa_toAAOptions() aaOptions.xAxis?.labels ?.style(AAStyle.style(AAColor.Black, 18)) aaOptions.yAxis?.labels ?.style(AAStyle.style(AAColor.Black, 18)) ```
找到了,只要设置这个属性值 ```objective-c /** 设置是否允许self.view支持滚动 默认YES */ @property(nonatomic,assign)BOOL sl_enableScrollBackground; ``` 为 NO 即可禁止🚫 tableView 的父视图滚动,从而实现 tableView 回弹的效果
参考在线文档: * https://api.highcharts.com/highcharts/tooltip.formatter
红包就免了吧. 你把你的图表配置 `AAChartModel` 或者 `AAOptions` 实例的代码粘贴一下, 我这边复现一下, 我看看怎么弄. PS: 请直接粘贴代码文本, 不要截取代码图片.
## 配置 `AAOptions` ```java public static AAOptions customizeTooltipFormatter() { String[] categories = { "周一","周二","周三","周四","周五","周六","周日"}; Object[] deepSeconds = {31320, 31320, 31320, 31320, 31320, 31320, 31320}; // 原始数据,单位是秒 Object[] lightSeconds = {3600,...
以上 `Java `代码最终转化而成的 `JS `代码对应的内容如下: ```js Highcharts.chart('container', { "chart": { "backgroundColor": "#ffffff", "inverted": false, "panning": true, "pinchType": "none", "polar": false, "type": "column" }, "colors": [ "#fe117c", "#ffc069", "#06caf4", "#7dffc0" ],...
Highcharts 在线代码编辑器: * https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/tooltip/formatter-simple/
以上 `tooltip` 的 `formatter` 函数配置过程比较详细,稍显啰嗦, 可以改的再简洁一些。 更简洁直观 `JavaScript` 代码示例如下: 1. 使用原始数组内容去拼接字符串(低版本兼容性更强): ```js "tooltip": { "formatter": function () { function formatTime(hours) { return [Math.floor(hours), '小时', Math.round((hours - Math.floor(hours)) * 60), '分钟'].join('...
> 有没有办法 直接传入 秒数组 deepSeconds,并实现需求 这样的话, 那Y 轴的 `label` 的 `formatter` 应该也要自定义了, 稍嫌麻烦。
这个问题, 确实比较难搞. 参考: * https://github.com/AAChartModel/AAChartKit/issues/600 这个方案也只能部分解决问题.