Marium,

Your type: "Date" should be type: "date".  Note the lower case.
Your date values are strings not dates, but not formatted as expected in
any case.  Depending on how you are providing this data, you may need to
use the string date format, which looks like this: "Date(2015,3,9)".  Note
that the month index starts with 0 for January.
Your numbers starting with "0" look like octal values to the number parser,
so don't start your numbers with 0.

You may not be seeing a chart due to some other error.  Look at your
JavaScript console to see what it says.

It's not clear how you are trying to show time on the x axis.  If you mean
to switch the orientation of the chart, so the domain axis is plotted
vertically, then you should use the orientation option.  If you want to
swap columns so your second column (number 1) is used for the domain axis,
then you probably need to create a DataView where you specify the columns
as [1, 0] to swap columns 0 and 1.

If you could build an example in jsfiddle that shows the problems you are
seeing, that would help clarify things.


On Thu, Apr 9, 2015 at 3:16 AM, mariummalik22 <[email protected]>
wrote:

> I have tried this json Data as well, but it still does not show any graph:
>
> { "cols": [{"id":"","label":"Date2","pattern":"","type":"Date"},
> {"id":"","label":"Duration Time","pattern":"","type":"timeofday"} ],
> "rows": [ {"c":[{"v": "15,04,09","f": null },{"v": [00,00,10] ,"f":
> "00:00:10"}]}, {"c":[{"v": "15,04,10","f": null },{"v": [00,00,07] ,"f":
> "00:00:07"}]}, {"c":[{"v": "15,04,11","f": null },{"v": [00,00,44] ,"f":
> "00:00:44"}]}, {"c":[{"v": "15,04,20","f": null },{"v": [00,00,18] ,"f":
> "00:00:18"}]} ] }
>
> --
> 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.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>  -
978-394-1058
[email protected] <[email protected]>   5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton MA

-- 
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