echarts
echarts copied to clipboard
Allow chart action controls for modifying data visualization in the rendered charts
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.
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.
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 [email protected]. 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 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
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:
-
Using SVG itself for creating controls for modifying data.
http://jsfiddle.net/qd9js9oj/ Here they used SVG rect for creating a button.
-
Using HTML Elements as overlay when need to take input from user.
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.
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.
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!