Hi,

i have changed my implementation now to the chartWrapper but i have a 
strange problem now. it didn`t show me my parsed Date Objects correct.

my ChartWrapper looks like this:

var options = {
>                     title: 'Name of the Chart',
>                     vAxis: {title: "Cups"},
>                     hAxis: {title: "Month"},
>                
>                     isStacked: false,
>              
>                     pointSize: 3
>                 };
> var chartWrapperArgs = {
>                         chartType: "LineChart",
>                         dataTable: dataTable,
>                         view: {"columns":[0,1,2]},
>                         options: options,
>                         containerId: "chart"]
>                     };
> var chartWrapper = new google.visualization.ChartWrapper(chartWrapperArgs);


and if i do this charWrapper.getDataTable().toJSON() it returns me this 
DataTable:

{"cols":[{"id":"0","label":"time","type":"date","pattern":"yyyyMMdd","$$hashKey":"038","p":{}},{"id":"1","label":"New
 
York","type":"number","pattern":null,"$$hashKey":"039","p":{}},{"id":"2","label":"San
 
Francisco","type":"number","pattern":null,"$$hashKey":"03A"},{"id":"3","label":"Austin","type":"number","pattern":null,"$$hashKey":"03B"},{"id":"4","label":"Country","type":"string","pattern":null,"$$hashKey":"03C"}],"rows":[{"c":[{"v":"Date(2011,
 
9, 1)"},{"v":10},{"v":20},{"v":30},{"v":"A"}]},{"c":[{"v":"Date(2011, 9, 
2)"},{"v":40},{"v":50},{"v":60},{"v":"B"}]},{"c":[{"v":"Date(2011, 9, 
3)"},{"v":70},{"v":80},{"v":90},{"v":"C"}]},{"c":[{"v":"Date(2011, 9, 
4)"},{"v":100},{"v":110},{"v":120},{"v":"D"}]}],"p":null} 

the strange thing is, on the x-Axis it shows the original value before the 
formatting for example "20111002"  but in the tooltips of my LineChart is 
the Date correct there is "02.10.2011" why is this so ? i want the the 
values on my x-axis shows also "02.10.2011" and not 20111002


-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to