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

when the point of label out of viewPortHandler.contentRect, we should not draw the label #209

Closed
wants to merge 1 commit into from

Conversation

liuxuan30
Copy link
Member

when the point of label out of viewPortHandler.contentRect, we should not draw the label

1.for bar chart, if the label point is out of contentRect vertically, ignore it and continue
2.for horizontal bar chart, if the label point is out of contentRect horizontally, ignore it and continue

1.for bar chart, if the label point is out of contentRect vertically, ignore it and continue
2.for horizontal bar chart, if the label point is out of contentRect horizontally, ignore it and continue (+1 squashed commit)
Squashed commits:
[1a0d195] when the pt.y larger than contentRect height, we should not draw the label
@liuxuan30 liuxuan30 force-pushed the ChartYAxisLabelBug branch from 841dd52 to cb9dc02 Compare July 29, 2015 07:52
@liuxuan30 liuxuan30 changed the title when the pt.y larger than contentRect height, we should not draw the label when the point of label out of viewPortHandler.contentRect, we should not draw the label Jul 29, 2015
@liuxuan30
Copy link
Member Author

Add a horizontal bar chart example to show the bug. there is a -100 label drawn out bound of y axis range.
-100

@liuxuan30
Copy link
Member Author

Hold on, today I met a bug introduced by my commit in ChartYAxisRenderer, the pt.y is actually less than contentRect.origin.y, and it should be drawn.

Wondering why. Still pending investigation.

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

Successfully merging this pull request may close these issues.

2 participants