In alignAxis.js the logic used to calculate tick steps and max tick doesn't work with datasets with only negative datapoints. Need to refactor the math to account for negative ranges. Currently, the charts are also set to have y=0 as the minimum value. To account for purely negative datasets, a possible new service might need to be incorporated to handle this case so that y=0 is not the minimum value.
To Reproduce
Use a dataset with only negative integers.
Expected Behavior
The chart's axis should be formatted so that instead of a tickMax, it accounts for a tickMin for the negative dataset
Screenshots
If applicable, add screenshots to help explain your problem. Please use markdown code blocks for any code.
Describe the Bug
In
alignAxis.js
the logic used to calculate tick steps and max tick doesn't work with datasets with only negative datapoints. Need to refactor the math to account for negative ranges. Currently, the charts are also set to have y=0 as the minimum value. To account for purely negative datasets, a possible new service might need to be incorporated to handle this case so that y=0 is not the minimum value.To Reproduce
Use a dataset with only negative integers.
Expected Behavior
The chart's axis should be formatted so that instead of a tickMax, it accounts for a tickMin for the negative dataset
Screenshots
If applicable, add screenshots to help explain your problem. Please use markdown code blocks for any code.
Environment
N/A
Additional Context
N/A