plotters-rs / plotters

A rust drawing library for high quality data plotting for both WASM and native, statically and realtimely 🦀 📈🚀
https://plotters-rs.github.io/home/
MIT License
3.89k stars 281 forks source link

[BUG] use of undeclared type or module `LineSeries` #102

Closed hasanOryx closed 4 years ago

hasanOryx commented 4 years ago

I got this error while trying to reproduce your jupyter example:

image

38 commented 4 years ago

Hi there, thanks for reporting this. This is most likely caused by missing features, you probably needs to add "line_series" feature to the top dep session to make it work.

Thanks for the issue and I am going to clean up the Juypter documentation since it's out-of-dated.

If you have any question please let me know.

Cheers!

38 commented 4 years ago

Hi there, Closing the issue now. If you have further problem, please let me know. - Hao

shinokada commented 4 years ago

What does "line_series feature to the top dep session to make it work" mean?

Can you give us an example?

Thanks.

aseyboldt commented 4 years ago

I had the same issue, it should be

:dep plotters = { git = "https://github.com/38/plotters", default_features = false, features = ["evcxr", "line_series"] }

@38 Is there a reason this is not included in the readme and examples?