-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Any way to add/use image for xVals? #126
Comments
There's currently no support for that. You can try adding it yourself in the |
Thanks Daniel. Is there any way to get an array of y coordinates for each xAxis line in a horizontal bar chart? I can then add UIImageViews to the Superview to externally place them at the .Top of each line. I can't figure out how to get those values with ViewPortHandler. |
The viewport tells you were content is drawn. בתאריך יום רביעי, 3 ביוני 2015, Daniel [email protected] כתב:
|
Any chance you have or know of any examples where this is done? I know how to use the viewPort to get the content area using
but I am not sure how to get xAxis values or use the transformer to convert to pixels. |
Give it a value of x=1,y=0 and it will convert that x to the proper pixel On Wed, Jun 3, 2015 at 6:44 PM, Daniel [email protected] wrote:
|
Thanks Daniel - what method should I use on viewPortHandler to do this? What do I give a value of x=1, y=0 to? |
The transformer, not the viewport. You need to ask the Chart to give you בתאריך יום רביעי, 3 ביוני 2015, Daniel [email protected] כתב:
|
OK - I believe I've made a bit of progress. I set up the chart with:
Then I use ChartTransformer to generate values:
[(1.0, 1.0), (1.0, 2.0), (1.0, 3.0), (1.0, 4.0)] Then I try to convert the values to pixels:
[(1.0, 1.0), (1.0, 2.0), (1.0, 3.0), (1.0, 4.0)] It's clear that I'm doing something wrong, but feels like I'm on the right track. Thank you for your assistance so far - I continue to appreciate any guidance. |
Daniel, thanks for your help with this. Figured it out.
(219.090912112191, 270.833333333333) Can then pull the x and y with
This is great! Very cool functionality. |
Hi @liebeskind where did you add these images so it scroll along with bars of graph ? |
Can you guys please share the sample. So that it becomes easy to use |
I am trying to have text and UIImage show up next to each other on the x axis of a bar chart. Any suggestions on how to do this?
The text was updated successfully, but these errors were encountered: