-
-
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
How to show x-axis labels only when value is a DataEntry in Line Chart? #1536
Comments
@Lorenzo-R Maybe you should modify the source code in
|
See my comment on a similar issue here: #1732 (comment) The difference for you would be that in For example:
You'll have to play with the granularity to prevent overlap of values, maybe. This may be difficult to get working, but hopefully this helps you get started! |
thanks @nickjwallin seems I can close it. Feel free to reopen if not resolved |
I use the x value of data entries to represent time in a
LineChart
and axAxis.valueFormatter
to format theTimeInterval
value into a date string. However I'd like the labels on thexAxis
to show only the dates relative to a data entry (as it was before withxIndex
), and hide all the ones that are currently shown in the space between two entry. I tried usingxAxis.granularity
, but it also prevents some "significant" dates (relative to an entry) to be shown.I hope there's a way to solve this problem.
I am currently using the master of 19/09/2016, waiting for 3.0 release to come out!
Thanks a lot for the awesome library!
The text was updated successfully, but these errors were encountered: