tiby312 / poloto-project

MIT License
158 stars 10 forks source link

[question] Custom format of tick values #134

Closed eknoes closed 2 years ago

eknoes commented 2 years ago

Thanks for the nice and easy to use crate! I could not really find that out, but is it (already) possible to format the tick values? E.g., I have a graph that has the time that it already ran as number of seconds as x-axis and want to provide some function to a Formatter, that formats it as Xh Ymin Zsec.

tiby312 commented 2 years ago

I just added an example of what I think you are wanting check it out:

source rendered

works by leveraging chrono's date time format function.

eknoes commented 2 years ago

Yes, I did not know with_tick_fmt. Great, thanks for the fast response!