AAChartModel / AAChartKit

📈📊🚀🚀🚀An elegant modern declarative data visualization chart framework for iOS, iPadOS and macOS. Extremely powerful, supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types. 极其精美而又强大的现代化声明式数据可视化图表框架,支持柱状图、条形图、折线图、曲线图、折线填充图、曲线填充图、气泡图、扇形图、环形图、散点图、雷达图、混合图等各种类型的多达几十种的信息图图表,完全满足工作所需.
https://cocoapods.org/pods/AAChartKit
MIT License
4.71k stars 750 forks source link

曲线图上mark点的默认光圈可以去掉吗? #1423

Closed zhongxunchao closed 1 year ago

zhongxunchao commented 1 year ago

如下图所示,绘制一条或多条曲线的情况下,总会有一条默认曲线在点击mark点后,mark点周围展示一圈半透明的光圈(红色箭头所指)。这个光圈可以去除吗? 1668042093401

zhongxunchao commented 1 year ago

附代码如下:

 _aaChartModel = AAChartModel.new
    .chartTypeSet(AAChartTypeSpline)//图表类型
    .colorsThemeSet(@[@"#fe117c",@"#ffc069"])//设置主题颜色数组
    .tooltipValueSuffixSet(@"℃")//设置浮动提示框单位后缀
    .yAxisLineWidthSet(@0)//Y轴轴线线宽为0即是隐藏Y轴轴线
    .yAxisGridLineStyleSet([AALineStyle styleWithWidth:@0])//y轴横向分割线/Users/zhongxunchao/Documents/DFMC/m57opensdk/M57IOSOpenSDK宽度为0(即是隐藏分割线)
    .markerRadiusSet(@0)
    .seriesSet(@[
        AASeriesElement.new
        .nameSet(@"2017")
        .markerSet(AAMarker.new
                   .radiusSet(@0)//曲线连接点半径
                   .symbolSet(AAChartSymbolTypeCircle)//曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
                   .fillColorSet(AAColor.yellowColor)//点的填充色(用来设置折线连接点的填充色)
                   .lineWidthSet(@5)//外沿线的宽度(用来设置折线连接点的轮廓描边的宽度)
                   //外沿线的颜色(用来设置折线连接点的轮廓描边颜色,当值为空字符串时,默认取数据点或数据列的颜色)
                   .lineColorSet(AAColor.yellowColor)
                   )
        .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]),
        AASeriesElement.new
        .nameSet(@"2018")
        .markerSet(AAMarker.new
                   .radiusSet(@0)//曲线连接点半径
                   .symbolSet(AAChartSymbolTypeCircle)//曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
                   .fillColorSet(AAColor.blueColor)//点的填充色(用来设置折线连接点的填充色)
                   .lineWidthSet(@5)//外沿线的宽度(用来设置折线连接点的轮廓描边的宽度)
                   //外沿线的颜色(用来设置折线连接点的轮廓描边颜色,当值为空字符串时,默认取数据点或数据列的颜色)
                   .lineColorSet(AAColor.blueColor)
                   )
        .dataSet(@[@0.2, @0.8, @5.7, @11.3, @17.0, @22.0, @24.8, @24.1, @20.1, @14.1, @8.6, @2.5])
    ]);

//    [self configureLineChartAndSplineChartStyle];
//    [self.aaChartView aa_drawChartWithOptions:self.aaOptions];
    [self.aaChartView aa_drawChartWithChartModel:self.aaChartModel];
AAChartModel commented 1 year ago

重复问题, 参考:

zhongxunchao commented 1 year ago

重复问题, 参考:

这里只是想去除外层的光圈,内部的mark点仍然保留。设置过AAMarkerHover.new.enabledSet(false)之后,mark点也看不见了。

AAChartModel commented 1 year ago

参考: