plotters-rs/plotters

How to create a chart with x-axis being Duration

andrewdavidmackenzie opened this issue · 0 comments

Not really an issue, more a question.
I tried this in Discussions, but no bite - maybe not read much, so thought I'd try here...

I'd like to create a chart where the x-axis is Duration type (nanos in UNIX epoch), but it does not implement Ranged
(https://docs.rs/plotters/0.3.6/plotters/coord/ranged1d/trait.AsRangedCoord.html).

At the moment I am converting to DateTime using chrono, and I'd like to get rid of that dependency and the conversions.
(if some other std::time struct can be used instead of chrono::DateTime or std::time::Duration, that would suit my needs also).

Thanks