Re: two line chart with differrent labels

22 views
Skip to first unread message

asgallant

unread,
Jan 2, 2013, 12:32:05 PM1/2/13
to google-visua...@googlegroups.com
Set the "interpolateNulls" option to true.

On Wednesday, January 2, 2013 12:11:13 PM UTC-5, Hicham El-housny wrote:
Hi every one,
i want to draw tow lignes but ignoring some data table: exemple, take it from google codes:
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
   
<script type="text/javascript">
      google
.load("visualization", "1", {packages:["corechart"]});
      google
.setOnLoadCallback(drawChart);
     
function drawChart() {
       
var data = google.visualization.arrayToDataTable([
         
['Year', 'Sales', 'Expenses'],
         
['2004',  1000,      400],
         
['2005',  XXXX,      460],
         
['2006',  660,       1120],
         
['2007',  1030,      540]
       
]);

       
var options = {
          title
: 'Company Performance'
       
};

       
var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
        chart
.draw(data, options);
     
}
   
</script>

somme time, i dont have
Sales value in 2005, so i want that google chart draw ligne for this category from 2004 to 2006.


Thank you.


Reply all
Reply to author
Forward
0 new messages