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

Custom X-Axis Values #1413

Closed
gaganindersingh opened this issue Sep 7, 2016 · 9 comments
Closed

Custom X-Axis Values #1413

gaganindersingh opened this issue Sep 7, 2016 · 9 comments

Comments

@gaganindersingh
Copy link

I am using Charts in Objective-c project. Trying to draw a LineChart with X-Axis value that represents time. Like 12:45, 12:50 etc. Using the sample code i am able to draw the graph but the values in the x-axis are not exact. I have x-axis values with one minute interval. The map is showing currently 2,4,6,8,10,12 only on the x-axis. How can i customize the values?

@yushan023
Copy link

IChartAxisValueFormatter delegate
55642c8d-e928-4795-bf31-f1634836b146
7a8a103e-b189-4202-ae76-7cc9590661e3

you also see demo in PositiveNegativeBarChartViewController.h

@liuxuan30
Copy link
Member

do you mean in x axis values, you have 1,2,3,4,5...10, but it just shows 2,4,6,8,10?

@baodiaoshounansha
Copy link

me to , i want to know author how to get data to the "value".it looks like that i didnot find where i can custom the "value"

@anishparajuli555
Copy link

anishparajuli555 commented Sep 8, 2016

@liuxuan30 I am also thinking how to draw custom values in x-axis as
screen shot 2016-09-08 at 11 58 28 am

@liuxuan30
Copy link
Member

have you guys checked Chart v3.0 ChartsDemo - Time Line Chart? Same thing?

@anishparajuli555
Copy link

@liuxuan30 Thats just a value formatter. Doesn't fill.For now,How can i customize the background Color? Or put a custom view ?

@gaganindersingh
Copy link
Author

I have implemented the value formatter now from the demo project but here comes the problem again.
screen shot 2016-09-10 at 3 01 47 am

@danielgindi
Copy link
Collaborator

It's actually IAxisValueFormatter. Pull the code from master and try the demo.

@anishparajuli555
Copy link

@danielgindi Is there a way i can set background color in x-Axis Values?

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

6 participants