* Returns a set of predefined style properties that should be used to represent the dataset * or the data if the index is specified * @param {number} index - data index * @param {boolean} [active] - true if hover * @return {object} style object
(index, active)
| 750 | * @return {object} style object |
| 751 | */ |
| 752 | getStyle(index, active) { |
| 753 | const mode = active ? 'active' : 'default'; |
| 754 | return index === undefined && this._cachedMeta.dataset |
| 755 | ? this.resolveDatasetElementOptions(mode) |
| 756 | : this.resolveDataElementOptions(index || 0, mode); |
| 757 | } |
| 758 | |
| 759 | /** |
| 760 | * @protected |
no test coverage detected