You can set the "pointSize" option to some value greater than 0 to make the points show up, which would give you something to see on the chart.
On Monday, June 3, 2013 8:09:00 AM UTC-4, A. Farber wrote: > > Does anybody please have a suggestion, what to do with > the LineChart showing nothing, when there is a single data value? > > The screenshot and very simple test code is below and also at > > http://stackoverflow.com/questions/16896329/google-linechart-does-not-display-a-single-value > > Thank you > > > <https://lh6.googleusercontent.com/-Xza6TZBkjno/UayHJmSbITI/AAAAAAAAC-c/1tULleQ5ZGs/s1600/line.png> > > <!DOCTYPE HTML> > <html> > <head> > <script type="text/javascript" > src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> > <script type="text/javascript" > src="https://www.google.com/jsapi?autoload={'modules':[{'name':'visualization','version':'1','packages':['corechart']}]}"></script> > <script type="text/javascript"> > > var data = {"L_B8_MAXPWRCAL_CI0":{ > "rows":[ > {"c":[{"v":"MEASUREMENT"},{"v":27.4},{"v":23},{"v":40}]}], > > "cols":[ > {"p":{"role":"domain"},"label":"MEASUREMENT","type":"string"}, > {"p":{"role":"data"},"label":"1142926087","type":"number"}, > {"p":{"role":"interval"},"label":"LSL","type":"number"}, > {"p":{"role":"interval"},"label":"USL","type":"number"}]}}; > > function drawCharts() { > for (var csv in data) { > var x = new google.visualization.DataTable(data[csv]); > > var options = { > title: csv, > width: 800, > height: 600 > }; > > var chart = new > google.visualization.LineChart(document.getElementById(csv)); > chart.draw(x, options); > } > } > > $(function() { > google.setOnLoadCallback(drawCharts); > }); > > </script> > </head> > <body> > <div id="L_B8_MAXPWRCAL_CI0"></div> > <hr> > </body> > </html> > > -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
