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
There is currently no default formatting for time series < 1 day (hours, minutes, seconds, etc.) #192
Comments
Hi - you're absolutely correct. We definitely need a good default for this case. @almossawi we should probably move on this for 1.1. |
Actually, along these lines. I have a few suggestions and am curious, do you prefer a pull request with new ideas, just a single issue for each idea, or lump everything into one issue/pull request? I'm using this in a Hapi.js and React based application so there are many changes I've had to make to the code to make it integrate without issue and would like to share back. |
Yes, a PR / idea would be most ideal! Thanks. |
@jdarling I'd be interested to see how you did it. |
SNAP!! any chance i can see your push request too? I'm trying to graph data produced using MRTG so range is 00:00 to 23:59 in 5 minute increments. |
I'm also very interested in this, it would be great! |
Moving to v1.2 |
very much interested also; especially with data containing just epoch timestamps with a callback available for formatting. |
Yeah, I would like to use the library for server performance metrics, eg requests/second, memory usage, error rates. These are mostly useful at smaller time scale, such as 5 minute increments. |
Sorry I haven't updated in a while, we hit a tight test-release cycle and I haven't had any time to look at this. I was basically thinking of porting what I did with d3rrc over so the time scale would self distribute over the input data. It's kinda built into D3 already, something similar to:
Would have to bucket the data before you could push it into something like that. If the goal is to self bucket then either using something like corssfilter or a similar self bucketing based on # of buckets requested and then breaking up the input would be necessary. |
@jdarling I just made some sensible defaults for x-axis time scales that are less than a second. They should just automatically work. For now I'm going to close this particular issue unless this crops up again. |
It appears to interfere with the change in #192
Is there a option to show the date in 24h format and not am/pm? |
@glukgluk You can change the specifier on this line to any one of the ones listed here, so for instance: yformat = d3.time.format('%H'); |
Needs to be a way to show data and group it by less than the day. Or to have a string value on the X Axis to be displayed by.
As an example, if you want to give a single 6 hour window of data grouped by every 30 minutes, you can't do that with the library today.
The text was updated successfully, but these errors were encountered: