Library for drawing bar charts, using HTML DOM.
Creates a Bar Chart inside div ; optObj describes its properties. optObj values:
Adds data to chart. Each value of dataArray describes
one column; each column may consist of multiple values. In such
case, dataArray is an array of arrays.
Adds horizontal labels.
Adds vertical labels.
Draws the chart.
CSS class of legend div.
CSS class of boxes with bar color, positioned left from the value description text.
CSS class of X axis description.
CSS class of Y axis description.
var chart = new OAT.BarChart("myDiv",{}); chart.attachData([1,3,2]); chart.attachTextX(["a","b","c"]); chart.draw();