here is there code: please tell me exactly where (near the bottom) I can place the get new data and draw additions...I have tried a few places and keep blowing up. I am a simpleton.
apologies,
cld
<html>
<head>
<script type="text/javascript">
google.load('visualization', '1', {'packages':['controls']});
google.setOnLoadCallback(drawVisualization);
function drawVisualization () {
var queryString = encodeURIComponent('SELECT *');
query.send(function (response) {
if (response.isError()) {
alert('Error in query: ' + response.getMessage() + ' ' + response.getDetailedMessage());
return;
}
var data = response.getDataTable();
var view = new google.visualization.DataView(data);
// Filter by Company
var CompanyFilter = new google.visualization.ControlWrapper({
'controlType': 'CategoryFilter',
'containerId': 'control_div',
'options': {
'filterColumnIndex': 1,
'ui': {
label: '',
allowTyping: false,
allowMultiple: false,
allowNone: false,
//selectedValuesLayout: 'top',
// 'caption': 'Choose metric',
cssClass: 'columnFilter_class'
}
},
state: {
selectedValues: ['LiquidFrameworks']
},
});
var RRR = new google.visualization.ChartWrapper({
'chartType': 'ComboChart',
'containerId': 'RevenueRunRate',
'options': {
'explorer': { actions: ['dragToZoom', 'rightClickToReset'] },
'focusTarget': 'category',
'width': 425,
'height': 275,
'hAxis': {direction: 1, bold: true, format: 'MMM-yy'},
'legend': 'bottom',
'title': 'Growth: (Revenue Run Rate & Bookings)',
'tooltipWidth':40,
'tooltipHeight':40,
'tooltipFontSize':12,
'vAxes': {
0: {title:'Bookings', format: '$#,###',textStyle: {color: '#707B7C'}},
1: {title: 'Revenue Run Rate',format: '$#,###',textStyle: {color: '#2E86C1'}}
},
'series': {1: {targetAxisIndex:0, type: 'line', lineWidth: 5, color:'#2E86C1' , legend: {position:'bottom' }},
0: {targetAxisIndex:1, type: 'area', lineWidth: 5,curveType: 'function', lineDashStyle: [8,2],color:'#707B7C', legend: 'bottom' }
},
'animation': {
duration: 1000,
easing: 'inAndOut'
},
},
view: {
columns: [0,5,14]
},
});
var EBITDAMarg = new google.visualization.ChartWrapper({
'chartType': 'ComboChart',
'containerId': 'EBITDAMargin',
'options': {
'explorer': { actions: ['dragToZoom', 'rightClickToReset'] },
'focusTarget': 'category',
'width': 425,
'height': 275,
'hAxis': {direction: 1, format: 'MMM-yy'},
'legend': 'bottom',
'vAxes': {
1: {title:'Operating Leverage', textStyle: {color: '3498DB'}},
0: {title: 'EBITDA Margin',textStyle: {color: '#AAB7B8'}}
},
'colors': ['#AAB7B8','3498DB'],
'title': 'Maturity: (EBITDA Margin / Operating Leverage)',
'tooltipWidth':40,
'tooltipHeight':40,
'tooltipFontSize':12,
'seriesType': 'bars',
'series': {1: {type: 'bar'}},
'series': {0: {targetAxisIndex:0, type:'bar'},
1: {targetAxisIndex:1, type: 'line', lineWidth: 5, curveType: 'function', lineDashStyle: [8,2]},
},
'trendlines': {1: {type: 'exponential', lineWidth: 5, tooltip: false, labelInLegend: 'Trend Line'}},
'animation': {
duration: 1000,
easing: 'inAndOut'
},
},
'view': {
columns: [0, 8,9]
},
});
var CACTrend = new google.visualization.ChartWrapper({
'chartType': 'LineChart',
'containerId': 'CACTrend',
'options': {
'explorer': { actions: ['dragToZoom', 'rightClickToReset'] },
'focusTarget': 'category',
'width': 425,
'height': 275,
'legend': 'bottom',
'hAxis': {direction: 1, format: 'MMM-yy'},
'vAxis': { title: 'Months', format:'#'},
'colors': ['3498DB'],
'title': 'Scalability: (Payback Period)',
'tooltipWidth':40,
'tooltipHeight':40,
'tooltipFontSize':12,
'curveType':'function',
'lineWidth':6,
'series': {0: {lineDashStyle: [8,2]}},
'trendlines': { 0: {}, tooltip: false },
'animation': {
duration: 1000,
easing: 'inAndOut'
},
},
view: {columns: [0,15]},
});