Illustration


 
 

Notes

  • Requirement: One attribute and one metric.
  • Optional, chart and axis titles.

JavaScriptA language that can run in the browser to make websites interactive.

  • window.onload = tbd.loadFile("TestSample/002_fruit_consumption.json",
    • function(source) {
      • var chart = new tbd.SimpleBarChart(
        • "chart01", "sbc", source, [0, 2], 400, 300);
      • chart.render();
      • var chart = new tbd.SimpleBarChart(
        • "chart02", "sbc", source, [1, 2], 400, 300);
      • chart.render();
  • });