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

请教一个小问题 #50

Closed
9yues opened this issue Sep 19, 2017 · 6 comments
Closed

请教一个小问题 #50

9yues opened this issue Sep 19, 2017 · 6 comments
Assignees

Comments

@9yues
Copy link

9yues commented Sep 19, 2017

image
这里的legend可以改变字体颜色吗?或者是中间那个白色小圆球可以改成透明色吗?

@xiguaxigua xiguaxigua self-assigned this Sep 19, 2017
@xiguaxigua
Copy link
Contributor

xiguaxigua commented Sep 19, 2017

可以修改字体颜色 https://jsfiddle.net/vue_echarts/jepw6dy2/77/

白色的小球似乎不能改成透明色,不过可以改变形状 http://echarts.baidu.com/option.html#legend.data.icon

@9yues
Copy link
Author

9yues commented Sep 19, 2017

大神看了你代码,才知道原来还有这种操作。。。
这个线条的起点,可以设置在画布的左下角开始吗

@xiguaxigua
Copy link
Contributor

https://jsfiddle.net/vue_echarts/jepw6dy2/79/

可以尽量让起点靠坐下,在数据支持的情况下(起点为数据内值最小的一个)

@9yues
Copy link
Author

9yues commented Sep 19, 2017

可以了,我这里设置了一个最大的数值30,目的是为了实现,动态加载数据时,可以一点一点的增长,有没有办法让这个30到画布的顶部?图中的30才到画布的一半
image

@xiguaxigua
Copy link
Contributor

xiguaxigua commented Sep 19, 2017

设置一下grid.top 应该就可以了
https://jsfiddle.net/vue_echarts/jepw6dy2/80/

image

@9yues
Copy link
Author

9yues commented Sep 19, 2017

可以了,主要是我不知道控制这个东西的是用 grid.top,我自己看文档有时候也是一脸懵,感谢大神的帮助

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

No branches or pull requests

2 participants