javascript - Problems formatting dates with Dygraphs -
I am planning data from CSV files with Graph. Date are unix timestamps
I am currently parsing and formatted dates like this.
... axes: {x: {valueFormatter: Dygraph.dateString_, ticker: Dygraph.dateTicker}} ... Here's a typical CSV The first lines of the file are:
X, ATLAS.HLTSV.AvailableCores. DF.HLTSV.Events 1392052678784,0.0 1392052703784,0.0 1392052708784,30.0 1392052713784,845.0 1392052718784,1313.0 1392052723784,1313.0 1392052728784,1431.0 ... This is my pursuit results:
provided went dates are correct, but I Has 2 problems -
-
-
The dates of the second description are first too long, and obviously it is sure to break the graph layout. I would like to change it to zoom level, as in this example:
How to fix it?
I originally scenario you describe is not found side clients how to create date format, a solution well seems to work that dated to the server-side format first time with the timetable instead of feeding directly Daygraf, the "Y-M-D-H-HH-HH-Eye S "for the pledge field, and the last label in the label will be small and readable. It also means that if you want the data source to be a CSV file on which you already have the server side already processed.
Comments
Post a Comment