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

哈哈哈,我又来提bug啦~ 饼图挡住了 legend #228

Closed
Eusen opened this issue Aug 3, 2018 · 9 comments · Fixed by #232
Closed

哈哈哈,我又来提bug啦~ 饼图挡住了 legend #228

Eusen opened this issue Aug 3, 2018 · 9 comments · Fixed by #232
Assignees
Labels

Comments

@Eusen
Copy link

Eusen commented Aug 3, 2018

这次是饼图的问题,我觉得不用多说,看图就够了->
image
image
image
image

chart.legend({
    position: 'top',  // 四个参数都试了一遍,都有遮盖
});
@simaQ
Copy link
Contributor

simaQ commented Aug 3, 2018

是不是在 new Chart() 那里设置了 padding?

@Eusen
Copy link
Author

Eusen commented Aug 3, 2018

很奇怪,之前是好使的,今天一看突然就不行了

@Eusen
Copy link
Author

Eusen commented Aug 3, 2018

我看看

@Eusen
Copy link
Author

Eusen commented Aug 3, 2018

this.chart = new F2.Chart({
        el: this.element,
        width: width,
        height: height,
        padding: 'auto', // 设置是auto,但是删掉也不行
        pixelRatio: window.devicePixelRatio,
        limitInPlot: this.chartType !== EliminateChartTypes.pie,
});

@simaQ
Copy link
Contributor

simaQ commented Aug 3, 2018

搜噶,能提供复现的代码么?我这边没有复现耶。。。

@Eusen
Copy link
Author

Eusen commented Aug 3, 2018

额,稍等会,有点事

@Eusen
Copy link
Author

Eusen commented Aug 7, 2018

我知道怎么复现了,
就是我一开始画了一个折线图,然后 clear() 掉,再绘制成饼图,就会出现这种问题

@simaQ simaQ self-assigned this Aug 8, 2018
@simaQ
Copy link
Contributor

simaQ commented Aug 8, 2018

好的,我明白了,我跟进下

@simaQ
Copy link
Contributor

simaQ commented Aug 9, 2018

@Eusen 3.1.18 版本,修复了, 感谢反馈 👍

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

Successfully merging a pull request may close this issue.

2 participants