@antv/g2plot
Version:
An interactive and responsive charting library
19 lines (17 loc) • 408 B
text/typescript
import { registerAction, registerInteraction } from '@antv/g2';
import { MarkerActiveAction } from './marker-active';
registerAction('marker-active', MarkerActiveAction);
registerInteraction('marker-active', {
start: [
{
trigger: 'tooltip:show',
action: 'marker-active:active',
},
],
end: [
{
trigger: 'tooltip:hide',
action: 'marker-active:reset',
},
],
});