Hi! As you can see below, I added code to generate circle found in BarsPlusMinusAndLinesExample. However, the circle doesn't appear circular as it should, but instead looks horizontally stretched out. Please refer to the code and screenshots below.
let circleViewGenerator = {(chartPointModel: ChartPointLayerModel, layer: ChartPointsLayer, chart: Chart) -> UIView? in let color = UIColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1) let screenLoc = CGPoint(x: chartPointModel.screenLoc.x.isNaN ? 50.0 : chartPointModel.screenLoc.x, y: chartPointModel.screenLoc.y) let circleView = ChartPointEllipseView(center: screenLoc, diameter: 6) circleView.animDuration = 0 circleView.fillColor = color return circleView }
Hi! As you can see below, I added code to generate circle found in BarsPlusMinusAndLinesExample. However, the circle doesn't appear circular as it should, but instead looks horizontally stretched out. Please refer to the code and screenshots below.
let circleViewGenerator = {(chartPointModel: ChartPointLayerModel, layer: ChartPointsLayer, chart: Chart) -> UIView? in let color = UIColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1) let screenLoc = CGPoint(x: chartPointModel.screenLoc.x.isNaN ? 50.0 : chartPointModel.screenLoc.x, y: chartPointModel.screenLoc.y) let circleView = ChartPointEllipseView(center: screenLoc, diameter: 6) circleView.animDuration = 0 circleView.fillColor = color return circleView }
Any ideas how to fix this? Thank you!