zemirco / swift-linechart

Line Chart library for iOS written in Swift
602 stars 68 forks source link

How to adjust the scale of the y-axis? #51

Open sphericalwave opened 6 years ago

sphericalwave commented 6 years ago

Hi, thanks for making this framework. Wondering if there is a way to adjust the scaling of the y-axis. I believe i read in the documentation that the linechart automatically handles scaling the height of the y-axis but that doesn't seem to be the case as can be seen in the attached screenshot. In the image below there are about the first value is at coordinates (x=0, y=17) which makes sense if each line of the grid is 10 units.

Any advice?

Thank you.

screen shot 2018-08-15 at 11 06 27 am
liganerd commented 6 years ago

Did you have any progress with the y-axis scale? Facing the same issue right now. Thanks

sphericalwave commented 6 years ago

Not yet. =(

On Wed, Oct 3, 2018 at 9:14 PM Liga Nerd notifications@github.com wrote:

Did you have any progress with the y-axis scale? Facing the same issue right now. Thanks

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zemirco/swift-linechart/issues/51#issuecomment-426844278, or mute the thread https://github.com/notifications/unsubscribe-auth/AAlWIaDjNinAP16jJQCvW6Od9nxUS1JRks5uhVLggaJpZM4V-KoJ .

liganerd commented 6 years ago

Dear friend, I found it last night. You should go to line 104 and 105 on linechart.swift ^^

sphericalwave commented 6 years ago

Wow, thanks for that!

Aaron

On Oct 4, 2018, at 10:50 PM, Liga Nerd notifications@github.com wrote:

Dear friend, I found it last night. You should go to line 104 and 105 on linechart.swift ^^

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zemirco/swift-linechart/issues/51#issuecomment-427222192, or mute the thread https://github.com/notifications/unsubscribe-auth/AAlWIW633El6mDtccb2JPABYNtWG5ZD3ks5uhrrmgaJpZM4V-KoJ.