thingco / shared-frontend-libs

0 stars 0 forks source link

[FIX] - X axis on graphs #62

Open ThingCoDanW opened 3 years ago

ThingCoDanW commented 3 years ago

Which package does this affect?

If this covers multiple packages, if possible open an issue for both and PR separately: this will keep the PR's scope as small as possible (plus each package needs separate version bumps & republishing after the fix has been applied).

Describe the bug The x axis behaviour on graphs is very inconsistent. In some cases, bottom and zero values do not render anything at all.

Expected behavior x axis should have three positions: Top, Bottom and Mid (scrap zero as not all graphs center on zero).

Top: Locks to top of y axis and runs along the graph horizontally Bottom: Locks to bottom of y axis and runs along the graph horizontally Mid: Locks to either center of y axis, or median of data on y axis. Latter may be more difficult, but I think looks better overall?