I have used the Google Bubble Chart to create a risk assessment chart. Code 
is below. Whenever the Impact and Probability of a risk ID are the same, 
you can only see the top one. How can I show there are two in the same spot?


<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(drawChart);
      function drawChart() {
        var data = google.visualization.arrayToDataTable([
          ['Risk ID', 'Impact', 'Probability', 'Color'],
          ['4',    5,              25, 'Risk ID'],
          ['5',    5,              41, 'Risk ID'],
          ['6',    2,              50, 'Risk ID'],
          ['7',    2,              50, 'Risk ID']
        ]);

        var options = {
          title: 'Risk Assessment',
          hAxis: {title: 'Impact', ticks: [0,2,4,6,8,10]},
          vAxis: {title: 'Probability', ticks: [0,20,40,60,80,100]},
          bubble: {opacity: 0},
          backgroundColor: 'none',
          fontSize: '10px',
          fontName: 'Arial',
          bubble: {textStyle: {fontSize: 12}},
          series: {'Risk ID': {color: 'white', visibleInLegend: 0}},
          sizeAxis: {maxSize: 15}
        };

        var chart = new 
google.visualization.BubbleChart(document.getElementById('chart_div'));
        chart.draw(data, options);
      }
    </script>
  </head>
  <body>
  <div id='brand_div'>
    <div id='chart_div' style="width: 1200px; height: 500px;"></div>
  </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 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