AAChartKit-Swift icon indicating copy to clipboard operation
AAChartKit-Swift copied to clipboard

0 line is not drawing

Open Shafran123 opened this issue 1 month ago β€’ 0 comments

there is a issue with a 0 line in line start its properly drawn.

below is the screen shot and configs i have used.

let marker = AAMarker()
        marker.lineColor(AAColor.black)
        marker.fillColor("#FFFFFF")
        marker.lineWidth(2)
        marker.radius(3)

return AAChartModel()
    .chartType(.line)
    .legendEnabled(false)
    .tooltipEnabled(true)
    .animationType(.easeOutCubic)
    .dataLabelsEnabled(false)
    //.markerSymbolStyle(.normal)
    //.markerRadius(2)
    .xAxisVisible(true)
    .yAxisLabelsStyle(AAStyle(color: AAColor.black, fontSize: 10, weight: .regular))
    .xAxisLabelsStyle(AAStyle(color: AAColor.black, fontSize: 10, weight: .regular))
    .yAxisMin(min)
    .yAxisMax(max)
    .series([
        AASeriesElement()
            .data(data ?? [])
        .negativeColor(AAColor.red)
        .color(AAColor.green)
        .marker(marker)
    ])
}

Screenshot 2024-05-14 at 12 24 03β€―PM

Shafran123 avatar May 14 '24 08:05 Shafran123