The jsfiddle link came up with nothing but 500 internal server error over
and over again.


On Tue, Aug 5, 2014 at 6:48 PM, Andrew Gallant <agall...@google.com> wrote:

> The GeoCharts don't support custom tooltips yet, so the range of what you
> can do is a bit limited.  If you want to get rid of the second row from the
> tooltips, the solution is to use a "tooltip" role column to override the
> contents of the row and null them out.  The tooltip will render with a
> space for the row, but it will be empty.  Here's an example of what this
> looks like: http://jsfiddle.net/asgallant/nLG37/.  The example uses a
> DataView to add the tooltip column in (lines 279-286), and draws the chart
> using the view.  If you are creating the chart server-side, it may be
> easier to add the tooltip column there instead of using a view.
>
>
> On Tuesday, August 5, 2014 3:33:41 PM UTC-4, Bryan Maloney wrote:
>>
>>
>> In addition to the googleVis command, here is the output from that
>> command. For the Alabama entry,
>>
>>  [
>>  "AL",
>> "AL: $22 million",
>> 22186
>> ]
>>
>> I wish to suppress "AL" and suppress 22186 and have only "AL: $22
>> million" appear on mouseover.
>>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>>   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
>> <html xmlns="http://www.w3.org/1999/xhtml";>
>> <head>
>> <title>GeoChartID1590742f148</title>
>> <meta http-equiv="content-type" content="text/html;charset=utf-8" />
>> <style type="text/css">
>> body {
>>   color: #444444;
>>   font-family: Arial,Helvetica,sans-serif;
>>   font-size: 75%;
>>   }
>>   a {
>>   color: #4D87C7;
>>   text-decoration: none;
>> }
>> </style>
>> </head>
>> <body>
>>  <!-- GeoChart generated in R 3.1.1 by googleVis 0.5.3 package -->
>> <!-- Tue Aug 05 14:31:07 2014 -->
>>
>>
>> <!-- jsHeader -->
>> <script type="text/javascript">
>>
>> // jsData
>> function gvisDataGeoChartID1590742f148 () {
>> var data = new google.visualization.DataTable();
>> var datajson =
>> [
>>  [
>>  "AL",
>> "AL: $22 million",
>> 22186
>> ],
>> [
>>  "AK",
>> "AK: -$93 million",
>> -93065
>> ],
>> [
>>  "AZ",
>> "AZ: $660 million",
>> 659601
>> ],
>> [
>>  "AR",
>> "AR: $14 million",
>> 14075
>> ],
>> [
>>  "CA",
>> "CA: -$1,050 million",
>> -1049642
>> ],
>> [
>>  "CO",
>> "CO: $592 million",
>> 591884
>> ],
>> [
>>  "CT",
>> "CT: -$188 million",
>> -187758
>> ],
>> [
>>  "DE",
>> "DE: $49 million",
>> 49474
>> ],
>> [
>>  "DC",
>> "DC: $32 million",
>> 31559
>> ],
>> [
>>  "FL",
>> "FL: $4,928 million",
>> 4928379
>> ],
>> [
>>  "GA",
>> "GA: $151 million",
>> 150630
>> ],
>> [
>>  "HI",
>> "HI: $74 million",
>> 74427
>> ],
>> [
>>  "ID",
>> "ID: $150 million",
>> 149891
>> ],
>> [
>>  "IL",
>> "IL: -$1,998 million",
>> -1997777
>> ],
>> [
>>  "IN",
>> "IN: -$258 million",
>> -258058
>> ],
>> [
>>  "IA",
>> "IA: -$218 million",
>> -217530
>> ],
>> [
>>  "KS",
>> "KS: -$216 million",
>> -216031
>> ],
>> [
>>  "KY",
>> "KY: -$2 million",
>> -2444
>> ],
>> [
>>  "LA",
>> "LA: -$54 million",
>> -53519
>> ],
>> [
>>  "ME",
>> "ME: $71 million",
>> 70622
>> ],
>> [
>>  "MD",
>> "MD: -$232 million",
>> -232201
>> ],
>> [
>>  "MA",
>> "MA: -$536 million",
>> -536470
>> ],
>> [
>>  "MI",
>> "MI: -$1,052 million",
>> -1052112
>> ],
>> [
>>  "MN",
>> "MN: -$357 million",
>> -356883
>> ],
>> [
>>  "MS",
>> "MS: -$45 million",
>> -45076
>> ],
>> [
>>  "MO",
>> "MO: -$388 million",
>> -388473
>> ],
>> [
>>  "MT",
>> "MT: $92 million",
>> 92241
>> ],
>> [
>>  "NE",
>> "NE: -$111 million",
>> -111284
>> ],
>> [
>>  "NV",
>> "NV: $269 million",
>> 269201
>> ],
>> [
>>  "NH",
>> "NH: $45 million",
>> 45192
>> ],
>> [
>>  "NJ",
>> "NJ: -$1,680 million",
>> -1679631
>> ],
>> [
>>  "NM",
>> "NM: $30 million",
>> 29605
>> ],
>> [
>>  "NY",
>> "NY: -$3,256 million",
>> -3256155
>> ],
>> [
>>  "NC",
>> "NC: $876 million",
>> 876272
>> ],
>> [
>>  "ND",
>> "ND: $68 million",
>> 67850
>> ],
>> [
>>  "OH",
>> "OH: -$1,263 million",
>> -1262524
>> ],
>> [
>>  "OK",
>> "OK: $17 million",
>> 17140
>> ],
>> [
>>  "OR",
>> "OR: $266 million",
>> 265561
>> ],
>> [
>>  "PA",
>> "PA: -$513 million",
>> -512993
>> ],
>> [
>>  "RI",
>> "RI: -$133 million",
>> -132706
>> ],
>> [
>>  "SC",
>> "SC: $835 million",
>> 835055
>> ],
>> [
>>  "SD",
>> "SD: $99 million",
>> 98588
>> ],
>> [
>>  "TN",
>> "TN: $458 million",
>> 457846
>> ],
>> [
>>  "TX",
>> "TX: $2,399 million",
>> 2399462
>> ],
>> [
>>  "UT",
>> "UT: $13 million",
>> 13362
>> ],
>> [
>>  "VT",
>> "VT: -$2 million",
>> -2084
>> ],
>> [
>>  "VA",
>> "VA: $86 million",
>> 85946
>> ],
>> [
>>  "WA",
>> "WA: $600 million",
>> 599786
>> ],
>> [
>>  "WV",
>> "WV: -$9 million",
>> -9049
>> ],
>> [
>>  "WI",
>> "WI: -$288 million",
>> -287827
>> ],
>> [
>>  "WY",
>> "WY: $77 million",
>> 76988
>> ]
>> ];
>> data.addColumn('string','State');
>> data.addColumn('string','AIG_pretty');
>> data.addColumn('number','AIG');
>> data.addRows(datajson);
>> return(data);
>> }
>>
>> // jsDrawChart
>> function drawChartGeoChartID1590742f148() {
>> var data = gvisDataGeoChartID1590742f148();
>> var options = {};
>> options["width"] =   1200;
>> options["height"] =    900;
>> options["projection"] = "lambert";
>> options["region"] = "US";
>> options["resolution"] = "provinces";
>> options["colorAxis"] = {values:[-4928379, -1355690.39529412, 0,
>> 1355690.39529412, 4928379], colors:['red', 'darkorange', 'white', 'blue',
>> 'darkviolet']};
>>
>>
>>     var chart = new google.visualization.GeoChart(
>>     document.getElementById('GeoChartID1590742f148')
>>     );
>>     chart.draw(data,options);
>>
>>
>> }
>>
>>
>> // jsDisplayChart
>> (function() {
>> var pkgs = window.__gvisPackages = window.__gvisPackages || [];
>> var callbacks = window.__gvisCallbacks = window.__gvisCallbacks || [];
>> var chartid = "geochart";
>>
>> // Manually see if chartid is in pkgs (not all browsers support
>> Array.indexOf)
>> var i, newPackage = true;
>> for (i = 0; newPackage && i < pkgs.length; i++) {
>> if (pkgs[i] === chartid)
>> newPackage = false;
>> }
>> if (newPackage)
>>   pkgs.push(chartid);
>>
>> // Add the drawChart function to the global list of callbacks
>> callbacks.push(drawChartGeoChartID1590742f148);
>> })();
>> function displayChartGeoChartID1590742f148() {
>>   var pkgs = window.__gvisPackages = window.__gvisPackages || [];
>>   var callbacks = window.__gvisCallbacks = window.__gvisCallbacks || [];
>>   window.clearTimeout(window.__gvisLoad);
>>   // The timeout is set to 100 because otherwise the container div we are
>>   // targeting might not be part of the document yet
>>   window.__gvisLoad = setTimeout(function() {
>>   var pkgCount = pkgs.length;
>>   google.load("visualization", "1", { packages:pkgs, callback: function()
>> {
>>   if (pkgCount != pkgs.length) {
>>   // Race condition where another setTimeout call snuck in after us; if
>>   // that call added a package, we must not shift its callback
>>   return;
>> }
>> while (callbacks.length > 0)
>> callbacks.shift()();
>> } });
>> }, 100);
>> }
>>
>> // jsFooter
>> </script>
>>
>> <!-- jsChart -->
>> <script type="text/javascript" src="https://www.google.com/
>> jsapi?callback=displayChartGeoChartID1590742f148"></script>
>>
>> <!-- divChart -->
>>
>> <div id="GeoChartID1590742f148"
>>   style="width: 1200; height: 900;">
>> </div>
>>  <div><span>Data: difference &#8226; Chart ID: <a href="Chart_
>> GeoChartID1590742f148.html">GeoChartID1590742f148</a> &#8226; <a href="
>> https://github.com/mages/googleVis";>googleVis-0.5.3</a></span><br />
>> <!-- htmlFooter -->
>> <span>
>>   R version 3.1.1 (2014-07-10)
>>   &#8226; <a href="https://developers.google.com/terms/";>Google Terms of
>> Use</a> &#8226; <a href="https://google-developers.appspot.com/chart/
>> interactive/docs/gallery/geochart">Documentation and Data Policy</a>
>> </span></div>
>> </body>
>> </html>
>>
>>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google Visualization API" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-visualization-api/9kjTPZ4--T8/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-visualization-api+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-visualization-api@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to