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

力学导向图无法在nodes中设置节点颜色 #902

Closed
bigjoy opened this issue Nov 17, 2014 · 9 comments
Closed

力学导向图无法在nodes中设置节点颜色 #902

bigjoy opened this issue Nov 17, 2014 · 9 comments

Comments

@bigjoy
Copy link

bigjoy commented Nov 17, 2014

看文档中的力学导向图示例的缩略图应该是可以给node设置不同的颜色的,但是示例中却只有一个一种颜色。试着在nodes中设置不同的itemStyle,但是很明显nodeStyle里的color并没有生效,依然没办法修改node颜色,请问是不是新版本把该设置关闭了?如果要定制node的颜色应该如何设置呢?

@pissang
Copy link
Contributor

pissang commented Nov 17, 2014

现在官网上的版本有bug,马上修复更新

@kener kener closed this as completed in bbb0b09 Nov 18, 2014
@jackwei
Copy link

jackwei commented Nov 19, 2014

我也遇到这个问题了,研究了好长时间。。。。

@kener
Copy link
Contributor

kener commented Nov 19, 2014

现在还不行?

@jackwei
Copy link

jackwei commented Nov 19, 2014

qq 20141119130414
颜色的生效了,但周围的边框还是存在的

@jackwei
Copy link

jackwei commented Nov 19, 2014

在百度实例里中修改是可以了,谢谢

@bigjoy
Copy link
Author

bigjoy commented Nov 19, 2014

对于单个节点可以设置normal下的nodeStyle颜色了,但是emphasis下nodeStyle 和label 的color 设置都没有生效 nodeStyle里的borderColor 和borderWidth 也是无效的。

@pissang
Copy link
Contributor

pissang commented Nov 19, 2014

我试了下是有效的,nodeStyle.normal.borderColor和nodeStyle.normal.borderWidth

@bigjoy
Copy link
Author

bigjoy commented Nov 19, 2014

我的意思是对单个节点设置itemStyle时,nodeStyle和label里的设置在normal下有效,但是emphasis下无效。现在要修改emphasis效果只能在series级别设置了,没办法对单个节点定制化设置。

@pissang
Copy link
Contributor

pissang commented Jan 12, 2015

试了一下也可以,单个节点上是 itemStyle.emphasis.borderWidth, 没有 nodeStyle 了

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

4 participants