()
| 497 | } |
| 498 | |
| 499 | _getAxis() { |
| 500 | const axis = {}; |
| 501 | const firstScaleAxisId = this.getFirstScaleIdForIndexAxis(); |
| 502 | for (const dataset of this.chart.data.datasets) { |
| 503 | axis[valueOrDefault( |
| 504 | this.chart.options.indexAxis === class="st">'x' ? dataset.xAxisID : dataset.yAxisID, firstScaleAxisId |
| 505 | )] = true; |
| 506 | } |
| 507 | return Object.keys(axis); |
| 508 | } |
| 509 | |
| 510 | /** |
| 511 | * Returns the stack index for the given dataset based on groups and bar visibility. |
no test coverage detected