Page MenuHomeSoftware Heritage

Archive graphs: vertical axis scaling not optimal
Closed, MigratedEdits Locked


The graphs on use the same Y-axis scaling.
The values chosen are only optimal for the first graph though, which causes the second and third ones to appear flat.

Event Timeline

ftigeot changed the task status from Open to Work in Progress.Aug 9 2019, 10:40 AM

This could be caused by the Javascript framework used to create graphs, Flot --

When resizing the browser window or when loading the page the first time after having pasted its name in the URL bar, it is obvious the "Source files" data is used for all graphs.

Different data is only displayed for "Commits" and "Projects" graphs when clicking on the "archive" link from another web page or when forcing a page reload.

ftigeot claimed this task.

The yaxis scale was explicitly forced to begin at zero.
Removing that constraint allows the graphs to scale and fill their allocated vertical space.

Commit: rMWGND0805a1178fc4 .