Skip to content

Call to dataView icon from another button #10236

@RubenCardos

Description

@RubenCardos

What problem does this feature solve?

Hi! I have been woorking with Angular and echarts in a proyect, and a i want to see the dataView table from another button. I read in the API Documentatión that i can call to echarts functions with the dispatch funcition, something like that

this.echartInstance.dispatchAction({ type: 'restore' });

But i cant do what i want with any action or events. Maybe is not possible for now??

I attach two images, the first is what i got now, the dataView icon (with label"A"), and the button (with label"B") what i want to have the same behaviour that the dataView icon.

Captura

The second image show what i got when i press the dataView icon, i want the same bhaviour when i press the another button.

Captura2

Any ideas or advices? Thanks a lot !

What does the proposed API look like?

Maybe something like

echartInstance.dispatchAction({ type: 'show dataView' });

For show and hide the dataView table.

Metadata

Metadata

Assignees

Labels

enThis issue is in EnglishstaleInactive for a long time. Will be closed in 7 days.support

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions