492162921 / rrd4j

Automatically exported from code.google.com/p/rrd4j
Other
0 stars 0 forks source link

provide more control over the format of time labels on the axis #64

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In some cases it would be useful to have more control over the time labels. 
There is currently a way to set the format string, but I cannot specify a 
different format for significant boundaries like day, month, or year 
transitions. Also, it has a lot of other parameters which make it difficult to 
use. I attached some example images showing the intent.

Another example from d3 library docs:

http://bl.ocks.org/mbostock/4149176

This patch has a quick version:

https://github.com/brharrington/rrd4j/commit/42e2b74d78207230f8bbd817e57f5ab1374
36b09

Original issue reported on code.google.com by brharrin...@gmail.com on 22 Feb 2014 at 9:39

Attachments:

GoogleCodeExporter commented 9 years ago
Very nice patch. Can you provide some junit tests with it ?

Original comment by fbacche...@gmail.com on 24 Feb 2014 at 11:04

GoogleCodeExporter commented 9 years ago
I have merged it in a new branch, TimeLabelFormat. I need javadoc and unit 
tests to merge it in main trunk.

Original comment by fbacche...@gmail.com on 24 Feb 2014 at 11:37