I would like to be able to create multiple scales for the Y axis of a 
LineChart. I have found a JavaScript example of how to do this (below), but 
I am coding in Java for a GWT application.  The problem is that I can't 
figure out how to set series values in Java. I have come across 
com.google.gwt.visualization.client.visualizations.corechart.Series 
(undocumented), but there doesn't seem to be a way to set targetAxisIndex 
for a Line Chart. Can anyone point me to a code example? Do I need to use 
one of the wrapper libraries for GWT/Visualization or has that 
functionality been migrated back into the Google visualization API?
Thanks!

// Create and draw the visualization.
  new google.visualization.LineChart(document.getElementById('visualization')).
      draw(data, {curveType: "function",width: 500, height: 400,
    vAxes: {0: {logScale: false},
            1: {logScale: false, maxValue: 10}},
    series:{
       0:{targetAxisIndex:0},
       1:{targetAxisIndex:0},
       2:{targetAxisIndex:1}}}
          );


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


Reply via email to