AAChartKit-Swift
AAChartKit-Swift copied to clipboard
0 line is not drawing
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)
])
}