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
When stacked yAxis.ticks.min is set chart should also be cut by this horizontal line like line chart type is.
Current Behavior
Whole value of bar is added to yAxis.ticks.min so that resulting bar has value = barDataValue + yAxis.ticks.min.
Possible Solution
Silly workaround is to substract data values with minimum value, hide yAxis for dataset and display results with dummy yAxis with properly ticks.min and max set: https://jsfiddle.net/24aotbnc/20/
Imagine you have stacked bars, bottom bars are bad(red) and top bars are good(green). All bottom red bars have value 80. All top green bars have vallue between 0 and 20. So may be you want to focus on values between 70 and 100.
Environment
Chart.js version: 2.5
The text was updated successfully, but these errors were encountered:
Expected Behavior
When stacked yAxis.ticks.min is set chart should also be cut by this horizontal line like line chart type is.
Current Behavior
Whole value of bar is added to yAxis.ticks.min so that resulting bar has value = barDataValue + yAxis.ticks.min.
Possible Solution
Silly workaround is to substract data values with minimum value, hide yAxis for dataset and display results with dummy yAxis with properly ticks.min and max set:
https://jsfiddle.net/24aotbnc/20/
Steps to Reproduce (for bugs)
https://jsfiddle.net/24aotbnc/19/
Context
Imagine you have stacked bars, bottom bars are bad(red) and top bars are good(green). All bottom red bars have value 80. All top green bars have vallue between 0 and 20. So may be you want to focus on values between 70 and 100.
Environment
The text was updated successfully, but these errors were encountered: