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

label.rotate设置后无效。 #9182

Closed
pisaandela opened this issue Oct 9, 2018 · 0 comments · Fixed by OpenTMI/opentmi-default-gui#32 or DeviaVir/zenbot#2011 · May be fixed by dyna-dot/iClient-JavaScript-s#1
Closed

label.rotate设置后无效。 #9182

pisaandela opened this issue Oct 9, 2018 · 0 comments · Fixed by OpenTMI/opentmi-default-gui#32 or DeviaVir/zenbot#2011 · May be fixed by dyna-dot/iClient-JavaScript-s#1
Labels

Comments

@pisaandela
Copy link

One-line summary [问题简述]

我想把关系图中的节点的标签,旋转90度显示,但是设置rotate属性后不起作用。
文档中有写这一项是可以设置的,http://www.echartsjs.com/option.html#series-graph.label.rotate,
但是,实际使用时,这个属性不产生效果。
_20181009173332

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:4.2.0-rc.1
  • Browser version [浏览器类型和版本]:all
  • OS Version [操作系统类型和版本]:all

Expected behaviour [期望结果]

_201810091733322

ECharts option [ECharts配置项]

option = {
    title: {
        text: 'Graph 简单示例'
    },
    tooltip: {},
    animationDurationUpdate: 1500,
    animationEasingUpdate: 'quinticInOut',
    series : [
        {
            type: 'graph',
            layout: 'none',
            symbolSize: 50,
            roam: true,
            label: {
                   show: true,
                    rotate: 90,
                    fontWeight:5,
                    fontSize: 26,
                    color: "#000",
                    distance: 15,
                    position: 'right',
                    verticalAlign: 'middle'
            },
            edgeSymbol: ['circle', 'arrow'],
            edgeSymbolSize: [4, 10],
            edgeLabel: {
                normal: {
                    textStyle: {
                        fontSize: 20
                    }
                }
            },
            data: [{
                name: '节点1',
                x: 300,
                y: 300
            }]
        }
    ]
}

Other comments [其他信息]

这个里面的例子是能做到旋转的,
http://www.echartsjs.com/gallery/editor.html?c=bar-label-rotation
_20181009173937

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