You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks to echarts, echarts-gl and echarts-graph-modularity, I've succeeded in displaying a complex weighted network with partitioned communities distinguished by colors. 🎉
However, in addition to network modularity display, I needed to obtain the detailed data of each community composition, such as the members which could be used for further analysis. 🙂
As far as I know, no existing method is provided to access the graph resolution result, which I think it's a missing valuable feature. 🙁
Personal
To obtain the community data, I cloned the repo, opened the main.js, allocated a variable to collect resolution result, and exposed it as payload through a custom event.
Pretty damage to the source code! 😨
Expected
May it extends an echarts instance method (or a better way you say), so that I just need to write simple as follows: 🤓
require('echarts-graph-modularity')
...
// when I want community data
var result = chart.getCommunitiesData()
// result
[
{
color: '#c23632',
members: ['nodeA', 'nodeB', ...]
},
...
]
So, what's your opinion?
The text was updated successfully, but these errors were encountered:
Description
Thanks to
echarts
,echarts-gl
andecharts-graph-modularity
, I've succeeded in displaying a complex weighted network with partitioned communities distinguished by colors. 🎉However, in addition to network modularity display, I needed to obtain the detailed data of each community composition, such as the members which could be used for further analysis. 🙂
As far as I know, no existing method is provided to access the graph resolution result, which I think it's a missing valuable feature. 🙁
Personal
To obtain the community data, I cloned the repo, opened the
main.js
, allocated a variable to collect resolution result, and exposed it as payload through a custom event.Pretty damage to the source code! 😨
Expected
May it extends an echarts instance method (or a better way you say), so that I just need to write simple as follows: 🤓
So, what's your opinion?
The text was updated successfully, but these errors were encountered: