As usually happens, right after I write a thread, I find an answer. If you have the same problem, is very simple to set your line chart to work this way. Just set interpolateNulls: true, in your chart options.
Thanks anyway. ;) Em quinta-feira, 10 de janeiro de 2013 12h06min35s UTC-2, rvb escreveu: > > Hi, > > I'm trying to make point (1) get connected with point (4). I've searched at > API documentation, but without success. Is it possible? > > <http://i.stack.imgur.com/WmO9e.png> > > > Thanks > > <html><head> > <script type="text/javascript" > src="https://www.google.com/jsapi"></script> > <script type="text/javascript"> > google.load('visualization', '1.0', {'packages':['corechart']}); > > google.setOnLoadCallback(drawChart); > > function drawChart() { > var data = new google.visualization.DataTable(); > data.addColumn('number', 'Year'); > data.addColumn('number', 'Sales'); > data.addRows([ > [1, 1000], > [2, null], > [3, null], > [4, 1030], > [5, 1080] > ]); > > var options = { 'title' : 'Line chart', > 'width' : 400, > 'height' : 300, > lineWidth : 2 > }; > > var chart = new > google.visualization.ScatterChart(document.getElementById('chart_div')); > chart.draw(data, options); > > } > </script></head> > <body> > <div id="chart_div"></div></body> > > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/anj30GvyXgMJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
