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

Label for Indexes overlaps #2

Open
bhavinchitroda opened this issue Oct 18, 2014 · 6 comments
Open

Label for Indexes overlaps #2

bhavinchitroda opened this issue Oct 18, 2014 · 6 comments

Comments

@bhavinchitroda
Copy link

screen shot

@ArthurGuibert
Copy link
Owner

Thanks for reporting this issue. I'm currently working on the next version and you'll be able to specify the vertical steps independently from the horizontal ones. I guess it would fix this issue. Another solution for you would be to reduce the number of characters used in the label...

@bhavinchitroda
Copy link
Author

It'll be better if you can rotate the Index Label (I tried but it messes the graph).
If you see that the label text starts with the vertical line (left aligned). Now, if my last label (here date string) is long, in that case my text will be cut down.
So, better option will be to rotate the label text to 90degrees (or inclined).
When will you post the update here?

@ArthurGuibert
Copy link
Owner

I just pushed a new update. You can now specify the font and the font size of the labels. I guess it could help in the first time for your issue.
For rotating the labels it should be now simpler as the labels frame are now correctly sized. If you go on the line 128/129 in FSLineChart.m you can specify a transform property to the label.
Something like this:
label.transform = CGAffineTransformMakeRotation(angle);
You might have to change the alignment and/or the position slightly but it's doable. Let me know if you have any trouble :)

@bhavinchitroda
Copy link
Author

Thanks Arthur...

I'm having some issues here.
It's showing "nan" (for "0" value) and displays only single index value.
Check out :
screen shot 2014-11-03 at 12 34 28 pm

@ArthurGuibert
Copy link
Owner

What is the data you're providing? It's a bit hard to see what is the problem here without the actual code. Is there anyway you can paste the code you've written for that result? Cheers!

@yuleichin
Copy link

hey, first I admit that your FSlinechart is really easy to use. But I wonder how to adjust the scale of the numbers shown in the chart? For example, I have series of data of temperature, and to make the data shown more clear, I want to adjust the minimum and the maximum of the data in the chart. Now the minimum data is always zero,while I hope I could use 35'C as the minimum and 42'C as the maximum. You know human's temperature is in this spectrum. So can you tell me how to modify the code to realize my thought? Thank u!!!

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

3 participants