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

echarts 自定义构建选择数据区域组件后的打包文件用不了 #2619

Closed
luxueyan opened this issue Feb 20, 2016 · 5 comments
Closed

Comments

@luxueyan
Copy link

luxueyan commented Feb 20, 2016

image
这一步报错了
image
貌似是把主题名称当成了object?


而且echarts3里面的配置项,涉及到位置坐标的 left,right,top,bottom貌似不太好用,我设置了bottom为一个具体数值时候,根本没有效果。不过用x,y height,width这些echarts2的属性还可以用,为什么文档里面不说明呢?

@pissang
Copy link
Contributor

pissang commented Feb 21, 2016

第二个问题可以给出详细的 option 么?

@luxueyan
Copy link
Author

luxueyan commented Feb 22, 2016

@pissang 被我换成y值加height设置了,我想的是可以实现这样的设置吗?例如:像css的position:absolute元素一样,可以用top控制上边距,bottom控制下边距,可以自然拉伸高度,如果top:10,bottom:10,并没有达到想要的效果!
ps:不过文档里面也没有包含height,width,x,y的设置,但是是支持的

@pissang
Copy link
Contributor

pissang commented Feb 22, 2016

可以这样设置

@luxueyan
Copy link
Author

luxueyan commented Feb 22, 2016

@pissang

dataZoom: [{
                    // show: true,
                    // realtime: true,
                    top: 48,
                    bottom: 60,
                    left: 78,
                    // height: 290,
                    // start: 30,
                    // end: 70,
                    backgroundColor: 'rgba(0,0,0,0)', // 背景颜色
                    dataBackgroundColor: 'rgba(0,0,0,0)', // 数据背景颜色
                    xAxisIndex: 1,
                    type: 'slider'
                }],

这样设置 不行

@100pah
Copy link
Member

100pah commented Feb 22, 2016

这是个bug已经改了,下个版本就可以了

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

3 participants