Hello together,

i am new to the Google Charts Api and i want to use them in my Filemaker 
database via webviewer. The bubble chart works fine for me, i have just one 
problem. I want to change the background color in the chart area because 
the white color does not look so good in my database.

Hope someone can help me!!!


This is my code:


"data:text/html," & " 
<html>
  <head>
    <script type=\"text/javascript\" 
src=\"https://www.google.com/jsapi\";></script>
    <script type=\"text/javascript\">
    google.load(\"visualization\", \"1\", {packages:[\"corechart\"]});
    google.setOnLoadCallback(drawSeriesChart);

    function drawSeriesChart() {

      var data = google.visualization.arrayToDataTable([
        ['ID', 'Attributrating','Fertility Rate',  'Region',     
'Population'],
        ['" & Spieler::Name & "', " & Spieler::Attributrating Punkt & ",   
3,   'Spieler',  0],
        ['" & Clubs::Clubname & "', " & Spieler::Durchschnitt 
Attributrating Club Punkt & ",  2,    'Club',         0],
        ['" & Clubs::Liga & "'," & Spieler::Durchschnitt Attributrating 
Liga Punkt & ",   1,   'Liga',  0]
      ]);

      var options = {
        title: 'Wertevergleich Attributrating Spieler/Club/Liga',
        hAxis: {title: 'Attributrating'},
        vAxis: {title: ''},
        bubble: {textStyle: {fontSize: 8},
   }
      };

      var chart = new 
google.visualization.BubbleChart(document.getElementById('series_chart_div'));
      chart.draw(data, options);
   }


    function drawGradientColorChart() {
      var data = google.visualization.arrayToDataTable([
        ['ID', 'X', 'Y', 'Temperature'],
        ['',   80,  167,      120],
        ['',   79,  136,      130],
        ['',   78,  184,      50],
        ['',   72,  278,      230],
        ['',   81,  200,      210],
        ['',   72,  170,      100],
        ['',   68,  477,      80]
      ]);

      var options = {
        colorAxis: {colors: ['yellow', 'red'],
       }
      };

      var chart = new 
google.visualization.BubbleChart(document.getElementById('gradient_chart_div'));
      chart.draw(data, options);
    }
</script>
  </head>
<body bgcolor=#5E5C5C>
    <div id=\"series_chart_div\" style=\"width: 400px; height: 
270px;\"></div>
  </body>
</html>"

-- 
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.

Reply via email to