apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser

Home Page:https://echarts.apache.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chord and Network Diagram requires an extra first row to provide correct links

ISK-VAGR opened this issue · comments

Version

latest

Link to Minimal Reproduction

https://www.dropbox.com/t/Z4i4z2iyC3fbfiJh

Steps to Reproduce

I've encountered an issue with the ECharts circular chord diagram and network diagram. When creating the JSON file for these diagrams, an additional dummy row is needed in the nodes section to ensure the links properly connect the source and target nodes. Without this dummy row, the connections appear incorrect and do not display as expected.

Steps to Reproduce:

1.	Create a JSON file with nodes and links as per the ECharts format.
2.	Omit the additional dummy row in the nodes section.
3.	Observe that the connections between nodes are not displayed correctly.

Use the JSON files provided in the link.

Current Behavior

When creating the JSON file for these diagrams, an additional dummy row is needed in the nodes section to ensure the links properly connect the source and target nodes. Without this dummy row, the connections appear incorrect and do not display as expected.

Expected Behavior

The links should correctly connect the source and target nodes without needing an additional dummy row.

Environment

- OS:macOS Sonoma
- Browser: KNIME
- Framework: ???

Any additional comments?

Background explanation:

Hello,

I believe I have found a bug affecting both the circular chord diagram and potentially the network diagram in ECharts.

Issue Description:

When creating the JSON file for these diagrams, it seems necessary to include an additional dummy row in the nodes section of the JSON file to ensure the links properly connect the source and target nodes. Without this dummy row, the connections between nodes appear aberrant.

Example:

1.	Without Dummy Row:
•	Here is a simple representation of the network diagram without the dummy row, where the connections do not appear correctly.
2.	With Dummy Row:
•	Here is the same diagram with an added dummy row at the beginning, showing the connections properly.

JSON File Example:

The first connection should be between source 1 and target 2. This connection is not displayed correctly unless a dummy row is added to the JSON file.

Impact:

This issue could lead to incorrect interpretations of the results, which is critical for data analysis and visualization. I'm unsure if this is a bug or if I've missed something in the setup, but using the table without the dummy row does not work as expected.

I wanted to bring this to your attention so you can investigate and address the issue if needed. Any clarification or fix would be greatly appreciated.