apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
59.55k stars 19.58k forks source link

[Feature] Implementing examples from library to knime #19866

Open Rustam666 opened 2 months ago

Rustam666 commented 2 months ago

What problem does this feature solve?

Hi, I'm trying to implement tree map example (https://echarts.apache.org/examples/en/editor.html?c=tree-basic) in Knime. I would kindly ask you to provide a guide if it's possible how to do it.
Screenshot 2024-04-25 164622

What does the proposed API look like?

rewweq

DanielBogenrieder commented 2 months ago

Hey,

This probably is more of a KNIME questions than an ECharts questions, so I guess the better place for this question would be the knime forum. Anyway, let me give you an example on how to create the same result as in the example you mentioned. I attached the workflow I used in order to recreate the behaviour. It is probably a nice starting point if you want to adapt it to your use cases.

image

It makes a request to fetch the data used in the ECharts example and makes use of this data in the script that you already provided. The most challenging part to adapt it to your use cases is likely to get your data into the correct format. KNIME offers some really nice data manipulation feature to help you with that and with the addition of the AI Assistant it is probably even easier. There is also an AI Assistant in the Generic ECharts node itself that can help you to create the tree visualisation.

EchartsTreeExample.knwf.zip

Hope that this helps.

Greetings, Daniel