An An

Results 545 comments of An An

参考 https://github.com/AAChartModel/AAChartKit/issues/747

设置单个数据的对应 label 的关键内容如下 ```objc AADataElement *singleSpecialData = AADataElement.new .dataLabelsSet(AADataLabels.new .enabledSet(true) .useHTMLSet(true) .formatSet(formatStr) .styleSet(AAStyle.new .fontWeightSet(AAChartFontWeightTypeBold) .colorSet(AAColor.whiteColor) .fontSizeSet(@"16px")) .ySet(@(-35))//调整 DataLabel 的 Y轴方向上的位移 .alignSet(AAChartAlignTypeCenter) .verticalAlignSet(AAChartVerticalAlignTypeTop) .overflowSet(@"none") .cropSet(false) ) .ySet(@26.5); ``` 调整 `.ySet(@(-35))`即可.

` .ySet(@(-35))` 对AADataLabels 的这个属性的调整,不就是调整 AADataLabels 在 Y轴方向上的上下位移吗?这样不就能间接调整 AADataLabels 上下的距离吗? 现在不是很明白你的需求

参考: * https://github.com/AAChartModel/AAChartKit/issues/695 将此示例的 marker 稍作修改: ```objc - (AAChartModel *)configureSpecialStyleMarkerOfSingleDataElementChart2 { NSArray *stopsArr = @[ @[@0.00, @"#febc0f"],//颜色字符串设置支持十六进制类型和 rgba 类型 @[@0.25, @"#FF14d4"], @[@0.50, @"#0bf8f5"], @[@0.75, @"#F33c52"], @[@1.00, @"#1904dd"], ]; NSDictionary *gradientColorDic1...

以上稍作修改后的示例代码, `base64Symbol` 常量可在 AAChartKit 的 demo 中找到.

参考文档: * https://api.highcharts.com.cn/highcharts/series.line.marker.html (中文官网) * https://api.highcharts.com/highcharts/series.line.marker.html (英文官网)

Maybe you need this https://www.highcharts.com/ios/demo/dynamic-update

NO,It is come from Highcharts offical wrapper `Highcharts-iOS`,you can get it from here https://github.com/highcharts/highcharts-ios

这种情况,你要先看看 Highcharts 是不是支持这个功能了,在 Highcharts 官网上看看是否有类似的示例,如果没有,应该就实现不了.

那你要自己找找看了,我最近比较忙,不然可以帮忙找找看