You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/10/15 09:05:25 UTC
[GitHub] Ovilia edited a comment on issue #9210: fix #9182 Graph
label.rotate is invalid
Ovilia edited a comment on issue #9210: fix #9182 Graph label.rotate is invalid
URL: https://github.com/apache/incubator-echarts/pull/9210#issuecomment-429765169
`data.label` should also be supported. Test example:
```js
var option = {
title: {
text: 'Graph 简单示例'
},
tooltip: {},
animationDurationUpdate: 1500,
animationEasingUpdate: 'quinticInOut',
series : [
{
type: 'graph',
layout: 'none',
symbolSize: 50,
roam: true,
label: {
show: true,
rotate: 30,
fontWeight:5,
fontSize: 26,
color: "#000",
distance: 15,
position: 'inside',
verticalAlign: 'middle'
},
edgeSymbol: ['circle', 'arrow'],
edgeSymbolSize: [4, 10],
edgeLabel: {
normal: {
textStyle: {
fontSize: 20
}
}
},
data: [{
name: 'rotate 30',
x: 300,
y: 300
}, {
name: 'rotate -30',
x: 500,
y: 600,
label: {
rotate: -30
}
}],
emphasis: {
label: {
rotate: 45
}
}
}
]
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org