Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you just want the chart, this code for <a href="http://code.google.com/apis/ajax/playground/?type=visualization#column_chart" rel="nofollow noreferrer">google visualization</a> will do it:</p> <pre><code>function drawVisualization() { // Create and populate the data table. var data = google.visualization.arrayToDataTable([ ['Country', 'Oranges', 'Apples'], ['India', 4, 10], ['USA', 2, 3], ['Africa', 1, 1], ['Russia', 24, 12], ['UK', 3, 2], ['Spain', 1, 2], ['Germany', 3, 3] ]); // Create and draw the visualization. new google.visualization.ColumnChart(document.getElementById('visualization')). draw(data, {width:600, height:400, isStacked: true} ); } </code></pre> <p><sub>Disclaimer: this is not 3d. I do not believe in 3d graphs for <a href="http://peltiertech.com/WordPress/excel-3d-charts-charts-with-no-value/" rel="nofollow noreferrer">many reasons</a></sub></p> <p>Result:</p> <p><img src="https://i.stack.imgur.com/Ab6Vs.png" alt="Interactive Chart"></p> <p>If you absolutely need 3d, you can use the old version of barcharts:</p> <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="content-type" content="text/html; charset=utf-8"/&gt; &lt;title&gt; Google Visualization API Sample &lt;/title&gt; &lt;script type="text/javascript" src="//www.google.com/jsapi"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; google.load('visualization', '1', {packages: ['barchart']}); &lt;/script&gt; &lt;script type="text/javascript"&gt; function drawVisualization() { // Create and populate the data table. var data = google.visualization.arrayToDataTable([ ['Country', 'Oranges', 'Apples'], ['India', 4, 10], ['USA', 2, 3], ['Africa', 1, 1], ['Russia', 24, 12], ['UK', 3, 2], ['Spain', 1, 2], ['Germany', 3, 3] ]); // Create and draw the visualization. new google.visualization.ColumnChart(document.getElementById('visualization')). draw(data, {width:600, height:400, isStacked: true, is3D: true} ); } google.setOnLoadCallback(drawVisualization); &lt;/script&gt; &lt;/head&gt; &lt;body style="font-family: Arial;border: 0 none;"&gt; &lt;div id="visualization" style="width: 600px; height: 400px;"&gt;&lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Result:</p> <p><img src="https://i.stack.imgur.com/yRaPA.png" alt="3d is evil"></p> <p>I assume the table below isn't needed if the chart is interactive, but you can do that with <a href="http://code.google.com/apis/ajax/playground/?type=visualization#table" rel="nofollow noreferrer">this</a> if absolutely required.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload