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

Automatic CPTAxisLabelingPolicy behaviour with Time Series #158

Open
kas84 opened this issue Feb 26, 2015 · 1 comment
Open

Automatic CPTAxisLabelingPolicy behaviour with Time Series #158

kas84 opened this issue Feb 26, 2015 · 1 comment

Comments

@kas84
Copy link

kas84 commented Feb 26, 2015

Automatic CPTAxisLabelingPolicy should change its formatter for time series depending on what's showing.

For example, if I am showing a time frame of minutes, ticks should have seconds, if I have a time frame of hours, ticks should have minutes and so on.

captura de pantalla 2015-02-26 a las 12 45 07

Even, been able to display just seconds in some cases and minutes + seconds in others would be useful, especially because on iOS devices space is so limited.

Is it supported? If not where should I look to change the behaviour?

@eskroch
Copy link
Member

eskroch commented Feb 27, 2015

Right now, the axis labeling methods always treat the data as a numeric series. They have no way to know about the date series behind the data. For now, it's probably easiest to stick with the fixed interval labeling policy and set the tick interval to the exact interval desired.

Issue #7 requests the ability to provide plot data as dates rather than converting them to a numeric series. If and/or when this is implemented, the axis labeling policies will be updated to work with dates as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants