marcomachadosantos / gwt-chronoscope

Automatically exported from code.google.com/p/gwt-chronoscope
GNU Lesser General Public License v2.1
0 stars 0 forks source link

support dtformat in json dataset #58

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In the json dataset format, it would be nice to allow developers the option
to use dtformat to specify the domain format so they don't have to
translate to posix time.  Of course, domainscale and dtformat would be
mutually exclusive. 

Original issue reported on code.google.com by socon...@gmail.com on 22 Aug 2008 at 4:42

GoogleCodeExporter commented 8 years ago
Added new dtformat field to JSON format, if present, it's a string in the 
standard GWT/Java DateTimeFormat 
syntax and overrides domainScale.

Moreover, the domain array may now an array of strings, e.g.

data = {
dtformat: "yyyy-MM",
domain: [ "1980-10", "1985-11", "1986-12"],
...
}

Note that this format is only used for parsing datasets and has no effect on 
how the chart formats dates 
during rendering.

Original comment by cromwell...@gmail.com on 13 Sep 2008 at 7:39