Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Adds a new option which sets the center of the fill bar at zero. Use… #342

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

tcharlss
Copy link

This PR adds a new fillBeginsAtZero option which sets the center of the fill bar at zero.
It can be usefull when the values range from negative to positive. If needed, it should be possible to add another option in order to choose a different value than zero. Or maybe rename the first option to fillBeginsAtValue and make it accept a number instead of a boolean.

Anyway, a few examples:

rangejs_horizontal

It also works when the negative and positive values are uneven:

rangejs_horizontal_uneven

And it supports vertical orientation:

rangejs_vertical

(In these screenshots I added a ruler for clarity. Also, I forgot to disable my custom theme).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant