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

Grid with constant width cells #697

Closed
noais opened this issue Jan 21, 2016 · 2 comments
Closed

Grid with constant width cells #697

noais opened this issue Jan 21, 2016 · 2 comments

Comments

@noais
Copy link
Contributor

noais commented Jan 21, 2016

As you can see in the image, the last grid column width is shorter than the others. I believe that this happens because the rightAxis hides the chart content view. How can i fix this problem?

img_0049

@liuxuan30
Copy link
Member

It's because value '45' is beyond the contentRect right side, so its grid line is not drawn.
I think the problem is, shall we draw [0-45] or we make [0-40] fully occpuies the content width, to avoid such issue. I am thinking this is a bug, why not draw [0-45] or even [0-50] but [0-40]
I will check it later

UPDATE:
I most forget the x axis does not do the rounding stuff, it's just draw as much as it can with _xAxis.axisLabelModulus. So the range is [0, 44], and _xAxis.axisLabelModulus = 5. So it stopped drawing after 40. seems not a bug

@noais
Copy link
Contributor Author

noais commented Jan 22, 2016

Thank you @liuxuan30 you are right, I'm going to close the issue.

@noais noais closed this as completed Jan 22, 2016
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

2 participants