Skip to content

Commit

Permalink
Update JSFunctionForAAPointEventsComposer.m
Browse files Browse the repository at this point in the history
  • Loading branch information
AAChartModel committed Aug 27, 2024
1 parent 478101e commit a77158a
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ @implementation JSFunctionForAAPointEventsComposer


+ (AAOptions *)showTooltipOnlyOnClick {
// 创建 AAOptions 配置对象
AAOptions *aaOptions = AAOptions.new
return AAOptions.new
.chartSet(AAChart.new
.typeSet(AAChartTypeLine)) // 设置图表类型为折线图
.tooltipSet(AATooltip.new
Expand Down Expand Up @@ -63,13 +62,9 @@ + (AAOptions *)showTooltipOnlyOnClick {
))))//设置点击事件
.seriesSet(@[
AASeriesElement.new
.enabledCrosshairsSet(@true)
.colorByPointSet(@YES) // 每个点的颜色独立
.dataSet(@[@7.0, @6.9, @9.5, @14.5, @18.2, @21.5, @25.2, @26.5, @23.3, @18.3, @13.9, @9.6]) // 数据数组
]);


return aaOptions;
}

+ (AAOptions *)customizeCrosshairsStyle {
Expand Down

0 comments on commit a77158a

Please sign in to comment.