apache / echarts

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

The links.label of graph.force set show to true, graph will be lucency. #9557

Closed zhangchengshan closed 3 years ago

zhangchengshan commented 5 years ago

General Questions

In this issue, I have provided information with: 在这个 issue 中我提供了以下信息:

Issue Type

Issue Details

When i set the show field to true in links.label of graph.force, the whole graph is lucency. image

Expected Behavior

image

Current Behavior

Online Example

        option = {
            series: [{
                type: 'graph',
                layout: 'force',
                animation: false,
                label: {
                    normal: {
                        show:true,
                        position: 'right'
                    }
                },
                edgeLabel: {
                    show: true,
                    formatter: function(params) {
                        return params.data.in
                    }
                },

                focusNodeAdjacency: true,
                draggable: true,
                roam: true,
                force: {
                    layoutAnimation:true,
                    gravity:0.01, 
                    edgeLength: 150, 
                    repulsion: 55
                },
                data: data.nodes,
                links: data.edges
            }]
        };

Topics

Anything Else We Need to Know

Environment

Ovilia commented 5 years ago

Cannot reproduce. Checkout this example: http://gallery.echartsjs.com/editor.html?c=xX_NLZRp5P and add symbol: 'image://https://s1.ax1x.com/2018/03/10/9RqK0J.jpg' after line 50th to see.

zhangchengshan commented 5 years ago

@Ovilia http://gallery.echartsjs.com/editor.html?c=x3Mizu7x8l&v=4

zhangchengshan commented 5 years ago

i found when i set label.show to true and not set linestyle, the graph is lucency.

Ovilia commented 5 years ago

OK. That seems to be a bug.

zhangchengshan commented 5 years ago

@Ovilia okey, i think you can close this issue if this case is a bug.

Ovilia commented 5 years ago

@zhangchengshan It should be closed after the bug is fixed.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 3 years ago

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!