UNPKG

zz-chart

Version:

Alauda Chart components by Alauda Frontend Team

30 lines 714 B
import { get } from 'lodash-es'; // import { LegendItemActive } from '../../index.js'; import { Action } from './action.js'; /** * legend toggle * @ignore */ export class LegendToggle extends Action { get name() { return 'legend'; } get component() { return this.view.components.get('legend'); } get uPlot() { return get(this.view.strategyManage.getStrategy('uPlot'), 'uPlot'); } /** * 切换 legend */ // toggle(value: LegendItemActive) { // if (this.uPlot) { // this.uPlot?.setSeries(value.index + 1, { show: !value.activated }, true); // } // } toggle() { // TODO } } //# sourceMappingURL=legend.js.map