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

Find screen location for bars in a bar chart #1949

Closed
peterlondon1 opened this issue Dec 12, 2016 · 2 comments
Closed

Find screen location for bars in a bar chart #1949

peterlondon1 opened this issue Dec 12, 2016 · 2 comments

Comments

@peterlondon1
Copy link

Can anyone give me some help in determining the screen location for each bar in a bar chart - so that I can extend the bars under the axis in a particular way?

@ghost
Copy link

ghost commented Dec 12, 2016

Refer to BarChartRenderer.

@liuxuan30
Copy link
Member

You have some choices, like leveraging the ChartViewDelegate to know which bar is highlighted as a reference.
The core is it will convert data value into screen point value, by using Transformer's pointValueToPixel and pixelsToValues. Just take a look at Transformer

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