I do not know why, but now it works with 1,2,3] in both places
My ChartWrapper only shows one line with it's ok
function drawVisualization_temp(data1) {
var data = new google.visualization.DataTable(data1);
dashboard = new google.visualization.Dashboard(document.getElementById(
'dashboard'));
rows_stop = data.getNumberOfRows()-1;
control = new google.visualization.ControlWrapper({
'controlType': 'ChartRangeFilter',
'containerId': 'control',
'options': {
// Filter by the date axis.
'filterColumnIndex': 0,
'ui': {
'chartType': 'LineChart',
'chartOptions': {
'chartArea': {'width': '90%'},
'hAxis': {'baselineColor': 'none'}
},
'chartView': {
'columns': [0, 1]
},
'minRangeSize': 1
}
},
// Initial range: 1 to 4.
'state': {'range': {'start': 0, 'end': rows_stop}},
view: {
columns: [{
type: 'number',
calc: function (dt, row) {
return {v: row, f: dt.getFormattedValue(row, 0)};
}
}, 1,2,3]
}
});
//then reverse the process in the ChartWrapper's view.columns:
var chart = new google.visualization.ChartWrapper({
'chartType' : 'LineChart',
'containerId': 'chart',
'dataTable' : data,
'options' : {
1. 'title' :'Test',
// Use the same chart area width as the control for axis
alignment.
'chartArea': {'height': '80%', 'width': '90%'},
'hAxis': {'slantedText': false},
'vAxis': { 'format':'#,###.##' },
'legend': {'position': 'top'},
},
view: {
columns: [{
type: 'string',
label: data.getColumnLabel(0),
calc: function (dt, row) {
return dt.getFormattedValue(row, 0);
}
}, 1,2,3]
}
});
dashboard.bind(control, chart);
dashboard.draw(data);
}
--
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/636fc3e2-474e-4938-b6b1-7649f27cee85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.