ivnsch / SwiftCharts

Easy to use and highly customizable charts library for iOS
Apache License 2.0
2.53k stars 410 forks source link

Can you please tell me how to give commas to Y axis Values? I tried but it didn't reflect #402

Open sivakumarsaragadam opened 4 years ago

sivakumarsaragadam commented 4 years ago
dhoerlHG commented 4 years ago

Create you own labels using ChartAxisValueString(formattedString, order: Int(norm.mn), labelSettings: labelSettings). The problem is you must use Int "orders", which just get turned into the scalar shown on the axis and also is used to define the starting point and range of the Y axis. If you don't mind actually changing the framework, add another init to ChartAxisValueString that just sets the scalar directly. [I tried to find a way to create a subclass and over ride scalar, but it seems hopeless...I can't modify the original source.]