My json data is :
{ "cols": [{"id":"","label":"Date1","pattern":"","type":"Date"}, 
{"id":"","label":"Duration Time","pattern":"","type":"timeofday"}, 
{"id":"","label":"Idle Time","pattern":"","type":"timeofday"}, 
{"id":"","label":"OK 
Count","pattern":"","type":"number"},{"id":"","label":"NG 
Count","pattern":"","type":"number"} ], "rows": [ {"c":[{"v": 
"2015-02-06","f": null },{"v": [00,00,10] ,"f": "00:00:10"}, {"v": 
[00,00,10] ,"f": "00:00:10"}, {"v": 2 ,"f": null}, {"v": 1 ,"f": null}]}, 
{"c":[{"v": "2015-02-06","f": null },{"v": [00,00,07] ,"f": "00:00:07"}, 
{"v": [00,00,07] ,"f": "00:00:07"}, {"v": 10 ,"f": null}, {"v": 0 ,"f": 
null}]}, {"c":[{"v": "2015-02-13","f": null },{"v": [00,00,44] ,"f": 
"00:00:44"}, {"v": [00,00,04] ,"f": "00:00:04"}, {"v": 4 ,"f": null}, {"v": 
2 ,"f": null}]}, {"c":[{"v": "2015-02-13" , "f": null },{"v": [00,00,18] 
,"f": "00:00:18"}, {"v": [00,00,18] ,"f": "00:00:18"}, {"v": 4 ,"f": null}, 
{"v": 3 ,"f": null}]} ] }

I want to plot date on x-axis while all others on y-axis. When I was having 
time on x-axis, I was able to plot everything perfectly. But when I defined 
date to be plotted on x-axis. It does not show anything. 

This is my chart.draw function:
 chart.draw(piechartdata, {
      width: 800,
      height: 600,
      pointSize:5,
      chartArea: { left:"10%",top:"10%",width:"80%",height:"80%" },
      legend: {position:'top'},
       vAxes: {1: {viewWindowMode:'explicit',
                      
                      gridlines: {color: 'black'},
                      title: 'OK Count and NG Count'
                      },
                  0: {gridlines: {color: 'black'},
                      title: 'Duration Time and Idle Time'
                      },
                  },
          series: {0: {targetAxisIndex:0},
                   1:{targetAxisIndex:0},
                   2:{targetAxisIndex:1},
                   3:{targetAxisIndex:1}
                  }, 


 hAxis: {
                    title: "Date"             
            
                                
    
             }

    });

    
  }

Let me know if there is any problem in anything. 

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