Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow chart action controls for modifying data visualization in the rendered charts #13279

Closed
msbasanth opened this issue Sep 14, 2020 · 5 comments
Labels
en This issue is in English stale Inactive for a long time. Will be closed in 7 days. waiting-for: community

Comments

@msbasanth
Copy link

What problem does this feature solve?

When we have data visualization which shows multiple parameters in single chart we need to modify visualization or data displayed through additional controls like drop down, toggles, date pickers etc.

When I looked into ECharts I couldn't find options for adding additional controls for filtering· If we have additional controls we could allow faceted search and user-selectable data to visualize according to the user needs.

image

Chart Actions
It would be great if we get options to modify data visualizations using additional controls. Controls that allow for modification of chart data for exploration.

It would be great if we could inject HTML into Chart UI for adding chart actions.

What does the proposed API look like?

We should have a chart actions section which will allow users to modify the UI. It would be great if we have option to customize chart actions section by inputting the HTML because it will give option to add application styled controls.

image

@echarts-bot
Copy link

echarts-bot bot commented Sep 14, 2020

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.

If you are interested in the project, you may also subscribe our mail list.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Sep 14, 2020
@100pah
Copy link
Member

100pah commented Sep 19, 2020

ECharts is rendered by Canvas or SVG, not HTML.

A good pattern of this job I think it probably be:
Get user parameters (like data select, bar click, ...) and assemble a new echarts option and call chart.setOption(newOption) to make the change work on the chart.

@100pah 100pah removed new-feature pending We are not sure about whether this is a bug/new feature. labels Sep 19, 2020
@msbasanth
Copy link
Author

@100pah

Agree that ECharts is rendered using Canvas or SVG.
As you said we could move this data filtering controls outside chart rendering area and and modify the chart by responding to the events. But it clearly gives better usability when we have controls inside the chart.

The options available:

  1. Using SVG itself for creating controls for modifying data.
    image
    http://jsfiddle.net/qd9js9oj/
    Here they used SVG rect for creating a button.

  2. Using HTML Elements as overlay when need to take input from user.
    image
    https://jsfiddle.net/BlackLabel/cf0h8tp5/
    Here used HTML Input on double click and allow user input through that.
    With this user don't have to go out of chart for doing a filtering logic.

It would be great if echarts allow data modifications controls similar way.

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

@github-actions github-actions bot added the stale Inactive for a long time. Will be closed in 7 days. label Sep 21, 2022
@github-actions
Copy link
Contributor

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English stale Inactive for a long time. Will be closed in 7 days. waiting-for: community
Projects
None yet
Development

No branches or pull requests

2 participants