j7126 / OctoPrint-Dashboard

A dashboard for Octoprint
GNU Affero General Public License v3.0
288 stars 39 forks source link

The layer timing graph doesn't adjust the grid interval as the number of layers increases #222

Closed StarNamer closed 4 years ago

StarNamer commented 4 years ago

Describe the bug I remember looking at the code in the past and the layer timing graph had some logic which meant that as the number of layers increased the grid spacing was also increased. So for the first 10 layers the spacing would be 1, but when it was at layer 150, the spacing would be 15 or more. This change seems to have been lost, possibly during the upgrade to Python 3.

To Reproduce Print anything with a few hundred layers.

Expected behavior As the number of layers graphed increases, the spacing is increased so the labels are clear.

Actual behavior Labels are all mashed together and hence cannot be read.

Screenshots image

OctoPrint server and Plugins:

Desktop (please complete the following information):

Willmac16 commented 4 years ago

I added the feature back in. It will be in the next release.