galenmaly/lighterpack

Plot accumulted weight

Opened this issue · 0 comments

It would be nice to be able to plot a category as accumulated weight, see mockup:

figure_2

The blue line is just the accumulated weight, and the orange line is the accumulated weight of the sorted item list (sorted by weight*quantity)... obviously the x-labels only fit for one of the two plots.

It would be even cooler if the item corresponding to a dot was displayed in a little text-popup, when the mouse hovered over the dot, but that's not so easy to do for a Github issue.

My experience with interactive plotting is limited, but still I'd suggest that you take a look at Plotly, which I know can do this, and many other fancy plots, and it's open source.
There's lots of tutorials around for plotly, so it might be an easy framework to work with, if you'd like to extend the plotting features at some time in the future.