Open drbrain opened 1 day ago
I dislike the x_label
proposal, it gets hard to get it right when you use multiple series and each series could come with an x_label
. I think a better alternative altogether would be to pass the chart
a closure that formats the labels on the x-axis.
When plotting data from a time series from the
nu_plugin_prometheus
plugin:The x axis values are seconds from the UNIX epoch. Plotting them as the raw value is not very useful for knowing the time span the plot covers.
It would be nice to attach an x (and y) label to a series that plotters-rs could use to give the axis labels as shown in several of the examples, perhaps: