You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off, I do not consider this feature request a viable plugin or extension, as I perceive this as a non-sane default and inflexibility of the chartJs library, that should be addressed in the chartJs library, and not in a plugin or extension.
Currently, in ChartJs version 2.9.3 it is not possible to define axis defaults for Category axis:
"For both the min and max properties, the value must be in the labels array"
This feature request is that, precisely this, does not need to apply and that this becomes overrideable again.
Feature Use Case
What this feature request tries to accomplish is to empower the library user to make this decision for themselves: why would they not be allowed to?
Suppose I have 2 categories, both with arbitrary values > 0, I can not seem to make my graph start at 0.
In the screenshot above, the Y-axis starts at the minimum value from values present in the data, which is 5.
I can not override this.
It seems to me that this is both:
a) not a sane-default, as it skews the perception of data, i.e. 2 categories with values 11.000 and 10.999 would make the y-axis start at 10.999 giving a wholly wrong impression of the data, anyone might miss.
b) Inflexible, as this default can not be overridden. The documentation seems to make this explicit, which is all the more weirder... why was this done, as it seems to be a purposeful decision given the quote from the documentation?
Possible Implementation
N/A
The text was updated successfully, but these errors were encountered:
Apart from my initial thought that this was not possible to override, this is indeed a duplicate 👍
It seems I made a mistake and did not make sure the correct configuration was actually passed to ChartJs: it is possible to override this.
Feature Proposal
First off, I do not consider this feature request a viable plugin or extension, as I perceive this as a non-sane default and inflexibility of the chartJs library, that should be addressed in the chartJs library, and not in a plugin or extension.
Currently, in ChartJs version
2.9.3
it is not possible to define axis defaults for Category axis:https://www.chartjs.org/docs/latest/axes/cartesian/category.html#min-max-configuration
This feature request is that, precisely this, does not need to apply and that this becomes overrideable again.
Feature Use Case
What this feature request tries to accomplish is to empower the library user to make this decision for themselves: why would they not be allowed to?
Suppose I have 2 categories, both with arbitrary values > 0, I can not seem to make my graph start at 0.
In the screenshot above, the Y-axis starts at the minimum value from values present in the data, which is 5.
I can not override this.
It seems to me that this is both:
a) not a sane-default, as it skews the perception of data, i.e. 2 categories with values
11.000
and10.999
would make the y-axis start at10.999
giving a wholly wrong impression of the data, anyone might miss.b) Inflexible, as this default can not be overridden. The documentation seems to make this explicit, which is all the more weirder... why was this done, as it seems to be a purposeful decision given the quote from the documentation?
Possible Implementation
N/A
The text was updated successfully, but these errors were encountered: