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

graph initialize speed #12509

Closed
amiraziz opened this issue Apr 27, 2020 · 1 comment
Closed

graph initialize speed #12509

amiraziz opened this issue Apr 27, 2020 · 1 comment

Comments

@amiraziz
Copy link

i have more than 50 connected links and problem is very confusing and boring until graph calms down. how can i increase speed of initilize time?

my options:

const chart = document.getElementById('graphContainer');
    const myChart = echarts.init(chart);
    const option = {
        tooltip: {show: true, formatter: "{c0}"},
        animationDuration: 100,
        animationEasingUpdate: 'elasticInOut',
        series: [{
            type: 'graph',
            layout: 'force',
            animation: false,
            symbolSize: [30, 30],
            animationDurationUpdate: 0,
            emphasis: {
                itemStyle: {
                    borderColor: null,
                    borderWidth: null,
                    color: "#2359c0",
                    shadowBlur: null,
                    shadowColor: "rgba(0, 0, 0, 0.3)"
                }
            },
            label: {
                position: 'right',
                formatter: '{b}'
            },
            draggable: true,
            data: result.nodes,
            force: {
                edgeLength: 150,
                gravity: 0.1,
                repulsion: 250,
            },
            edges: result.links,
            edgeSymbol: ['arrow'],
            edgeLabel: {fontSize: 10},
            focusNodeAdjacency: true,
            roam: true,
            lineStyle: {opacity: 0.9, width: 1.5, curveness: 0.1, color: '#682F2F'}
        }]
    };
    myChart.setOption(option);
@echarts-bot echarts-bot bot added the invalid label Apr 27, 2020
@echarts-bot
Copy link

echarts-bot bot commented Apr 27, 2020

This issue is not created using issue template so I'm going to close it. 🙊
Sorry for this, but it helps save our maintainers' time so that more developers get helped.
Feel free to create another issue using the issue template.

If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again.

这个 issue 未使用 issue 模板 创建,所以我将关闭此 issue。
为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。
如果您愿意,可以请使用 issue 模板重新创建 issue。

如果你认为虽然没有使用模板,但你已经提供了复现问题的充分描述,或者你的问题无法使用模板表达,也可以重新 open 这个 issue。

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