KarthikRIyer / swiftplot

Swift library for Data Visualization :bar_chart:
Apache License 2.0
398 stars 36 forks source link

issue in starting example | error: call can throw but is not marked with 'try' #119

Open noahtren opened 4 years ago

noahtren commented 4 years ago

Hey, thanks so much for making this package! I'm getting into Swift for TF and am so glad that there's a platform-independent plotting library to use.

I ran into a minor error when running the simple line graph example. The Swift compiler seems to expect error-handling from lineGraph.drawGraphAndOutput since there's a chance that it can return an error. I'm new to Swift and am curious about what's the most idiomatic way to deal with this — or maybe there's a compiler setting that makes this a non-issue.

Thanks!