Re: Google chart Bullet Chart

572 views
Skip to first unread message

Supafli

unread,
Jul 11, 2012, 10:36:00 AM7/11/12
to google-c...@googlegroups.com
Update:

I changed my code to use a stacked bar chart.
all I need to do is show data labels for each data point. Is this possible? 

Supafli

unread,
Jul 11, 2012, 10:40:52 AM7/11/12
to google-c...@googlegroups.com
function drawVisualization({
  // Create and populate the data table.
  var data google.visualization.arrayToDataTable([
    ['Year''Copies Delivered''Delivered to Agents'],
    ['99977',  99977,231871]
  ]);

  // Create and draw the visualization.
  new google.visualization.BarChart(document.getElementById('visualization')).
      draw(data,
           {title:"",
            width:200height:100,
            chartArea:{width100height:30,backgroundColor{stroke'#000',strokeWidth'2'}},
            vAxis{title''textStyle:{color'white'}textPosition:'none'},
            hAxis{title''textStyle:{color'white'}},
            focusTarget:'datum',
            isStackedtrue,
            legend:{position'none'},
            backgroundColor{stroke'#000',strokeWidth'2'}
           
           }
      );
Reply all
Reply to author
Forward
0 new messages