plotly/plotly.rs

Titles in all examples

Closed this issue · 1 comments

Hi,
I cannot run some of the example code in plotly.rs.book. I find all the .title(Title::new("balabala") should be adjusted to .title(Title::with_text("balabala") in order to run the examples successfully.
Besides, .side(Side::Right), must be adjusted to .side(AxisSide::Right), too.

Hi @wangjiawen2013 . Good catch!
Indeed, latest release has changed the API to allow passing all sorts of strings to title(s). We've missed the examples in the book.