translation of view based on values on graph y axis in Swift

Viewed 45

This is already implemented I want to implement line chart like this image. I have already bar chart implemented which display proper value based on scaling like

            barView.transform = CGAffineTransform.init(scaleX: 1, y: self.projectionValue)

Now i want to do same in line chart but using transformation as i can not change height of bar but move to view on specific value so how can i do this?

Expected Output

0 Answers
Related