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

[Feature Request] access to community data #1

Open
XfLoops opened this issue Feb 8, 2018 · 0 comments
Open

[Feature Request] access to community data #1

XfLoops opened this issue Feb 8, 2018 · 0 comments

Comments

@XfLoops
Copy link

XfLoops commented Feb 8, 2018

Description

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant