Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <script type="text/javascript" src="https://www.google.com/jsapi"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
<div id="chart_div">
    <div>
</body>
</html>
 
google.load('visualization', '1', {
    packages: ['corechart', 'bar']
});
google.setOnLoadCallback(drawBasic);
function drawBasic() {
    var data = new google.visualization.DataTable({"cols":[{"label":"name","type":"string"},{"label":"count","type":"number"}],"rows":[{"c":[{"v":"Name"},{"v":1}]},{"c":[{"v":"Name1"},{"v":2}]},{"c":[{"v":"Name2"},{"v":3}]},{"c":[{"v":"Name4"},{"v":1}]}]});
    var options = {
        title: 'Motivation Level Throughout the Day',
        hAxis: {
            title: 'Name'
        },
        vAxis: {
            title: 'Count'
        }
    };
    var chart = new google.visualization.ColumnChart(
    document.getElementById('chart_div'));
    chart.draw(data, options);
}
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers