mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-09 17:56:51 +01:00
Use correct option to detect stacked mode along x axis.
This commit is contained in:
@@ -293,7 +293,7 @@
|
||||
var leftTick = xScale.getPixelForValue(null, index, barIndex, this.chart.isCombo);
|
||||
leftTick -= this.chart.isCombo ? (ruler.tickWidth / 2) : 0;
|
||||
|
||||
if (yScale.options.stacked) {
|
||||
if (xScale.options.stacked) {
|
||||
return leftTick + (ruler.categoryWidth / 2) + ruler.categorySpacing;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user