You are clearing the chart incorrectly.  Your code:

         Chart3.clearChart();
         Chart3.getchart();


should be:

        var actualChart = Chart3.getchart();
        actualChart.clearChart();

I see in your data that the minutes and seconds in your datetime values are
two digits, sometimes starting with 0.  Don't do that, since those numbers
will be interpreted as octal rather than decimal.

You have duplicated values in several rows, e.g. Date(2015,3,8,0,45,00) appears
twice.  This will mean that the distance between adjacent values in the
table is 0, so the chart will choose the minimum space between bars.


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

> Or there is a problem in my json:
> { "cols": [{"id":"","label":"Start Time and Shut
> Down","pattern":"","type":"datetime"},{"id":"","label":" Machine ON or OFF
> ","pattern":"","type":"number"},{"id":"","label":"Machine ON or OFF
> ","pattern":"","type":"number"},{"id":"","label":"Machine ON or OFF
> ","pattern":"","type":"number"},{"id":"","label":"NG Count
> ","pattern":"","type":"number"},{"id":"","label":"OK Count
> ","pattern":"","type":"number"} ], "rows": [ {"c":[
> {"v":"Date(2015,3,8,0,45,00)","f": " "}, {"v": 0 ,"f": " "},{"v": null
> ,"f": null},{"v": null ,"f": null},{"v": 60 ,"f": null},{"v": 106 ,"f":
> null}]}, {"c":[ {"v":"Date(2015,3,8,0,45,00)","f": " "}, {"v": 0 ,"f": "
> "},{"v": null ,"f": null},{"v": null ,"f": null},{"v": null ,"f":
> null},{"v": null ,"f": null}]}, {"c":[ {"v":"Date(2015,3,9,1,22,00)","f": "
> "}, {"v": 0 ,"f": " "},{"v": null ,"f": null},{"v": null ,"f": null},{"v":
> 65 ,"f": null},{"v": 73 ,"f": null}]}, {"c":[
> {"v":"Date(2015,3,9,1,22,00)","f": " "}, {"v": 0 ,"f": " "},{"v": null
> ,"f": null},{"v": null ,"f": null},{"v": null ,"f": null},{"v": null ,"f":
> null}]}, {"c":[ {"v":"Date(2015,3,10,8,22,00)","f": " "}, {"v": 0 ,"f": "
> "},{"v": null ,"f": null},{"v": null ,"f": null},{"v": 15 ,"f": null},{"v":
> 70 ,"f": null}]}, {"c":[ {"v":"Date(2015,3,10,8,22,00)","f": " "}, {"v": 0
> ,"f": " "},{"v": null ,"f": null},{"v": null ,"f": null},{"v": null ,"f":
> null},{"v": null ,"f": null}]}, {"c":[ {"v": "Date(2015,3,14,8,04,00)","f":
> " " }, {"v": 0 ,"f": " "},{"v": null ,"f": null},{"v": null ,"f":
> null},{"v": 97 ,"f": null},{"v": 10 ,"f": null}]}, {"c":[ {"v":
> "Date(2015,3,14,8,04,00)","f": " " }, {"v": 0 ,"f": " "},{"v": null ,"f":
> null},{"v": null ,"f": null},{"v": null ,"f": null},{"v": null ,"f":
> null}]} ] }
>
> --
> 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