From a77158a852fe7b48a90efeaac6fd62dc3649c725 Mon Sep 17 00:00:00 2001 From: AAChartModel <2236368544@qq.com> Date: Tue, 27 Aug 2024 16:14:30 +0800 Subject: [PATCH] Update JSFunctionForAAPointEventsComposer.m --- .../AAOptionsWithJS/JSFunctionForAAPointEventsComposer.m | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/AAChartKitDemo/Demo/AAOptionsWithJS/JSFunctionForAAPointEventsComposer.m b/AAChartKitDemo/Demo/AAOptionsWithJS/JSFunctionForAAPointEventsComposer.m index 85d5035dc..7bc2b837e 100644 --- a/AAChartKitDemo/Demo/AAOptionsWithJS/JSFunctionForAAPointEventsComposer.m +++ b/AAChartKitDemo/Demo/AAOptionsWithJS/JSFunctionForAAPointEventsComposer.m @@ -13,8 +13,7 @@ @implementation JSFunctionForAAPointEventsComposer + (AAOptions *)showTooltipOnlyOnClick { - // 创建 AAOptions 配置对象 - AAOptions *aaOptions = AAOptions.new + return AAOptions.new .chartSet(AAChart.new .typeSet(AAChartTypeLine)) // 设置图表类型为折线图 .tooltipSet(AATooltip.new @@ -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 {