This should be EASY for someone who knows that they are doing. I followed an example jsfiddle that displayed multiple gages and a geographic chart that displays data based on what user selects in a dropdown. What I want to do is much simpler, just select a dropdown value, display the value in the gage.
so I started with this jsfiddle *http://jsfiddle.net/psvpp/* <http://jsfiddle.net/psvpp/> and stripped it down to what I need, with the exception of the GeoChart. Every time I try to remove all the GeoChart logic, it either renders blank or I get an error: My new fiddle is at http://jsfiddle.net/sremias/psvpp/8/ and all I want to do is get rid of all the GeoChart logic but I'm clearly missing something. Here's a summary of what I've tried: 1. remove the div to display chart1 in HTML window <td style='width: 1000px'> <div style="float: left;" id="chart1"></div> </td> 2. javascript, remove declaration of geoChart lines 40-59 var geoChart = new google.visualization.ChartWrapper({ chartType: 'GeoChart', containerId: 'chart1', // changed "ID" to "Id" options: { title: 'CFT Risk', displayMode: 'regions', width: 1000, datalessRegionColor: 'C0C0C0', colorAxis: { colors: ['#00FF00', '#FFFF00', '#FF0000'], minValue: 0, maxValue: 10 } }, // Defines data to show in geoChart view: { columns: [1] } }); 3. NOTE line numbers reflect existing jsfiddle code, not after above logic removed remove function drawAverageGauges lines 88 - 122 - based on a view of GeoChart data 4. remove lines 126-157 5. remove geoChart from binding in line 160 so it reads: dashboard.bind([ProjectPicker], ). Again, this should be SIMPLE and I'm sure someone that is more familiar with how this all works will easily see what I'm overlooking. Thanks in advance for taking a look. -- 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.
