Sure
function drawtest() {
var data = google.visualization.arrayToDataTable([
['Date','cola','colb'],
['2013-02-03',19.5304,-.5605693161487579],
['2013-02-04',18.8775,-.24253780022263527],
['2013-02-05',18.2191,.06985996384173632],
['2013-02-06',27.1147,.14070117473602295],
['2013-02-07',35.9662,.26058292388916016],
['2013-02-10',44.1648,.3628493249416351],
['2013-02-11',37.4898,.27981069684028625],
['2013-02-12',49.5246,.426681250333786],
['2013-02-13',50.2772,.43500056862831116],
['2013-02-14',60.4508,.56048572063446045],
['2013-02-18',73.9737,.719599962234497],
['2013-02-19',84.8249,.8376762866973877],
['2013-02-20',94.9387,.9319241642951965],
['2013-02-21',94.8215,.9063509702682495],
['2013-02-24',94.8635,.8891001343727112],
['2013-02-25',94.9087,.8795682191848755],
['2013-02-26',100,.9282900094985962],
['2013-02-27',100,.9215549230575562],
['2013-02-28',100,.9148746728897095],
]);
var options = {
legend: 'top',
chartArea: { width: '85%'},
seriesType: 'line' ,
series: {1: {targetAxisIndex: 1 }, 2: {targetAxisIndex: 2}},
//vAxis: { 1: {ticks: [-25,0,20,50,80,100,125]} }, // gets ignored when
uncommented
//vAxis: { ticks: [-25,0,20,50,80,100,125] }, // scales both to these ticks
when uncommented
};
var chart = new
google.visualization.ComboChart(document.getElementById('stock_test'));
chart.draw(data, options);
}
note the 2 commented out lines under options and their comments at end of
line
thx
--
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.