Home » Lab Projects » Table2Graph Class » Bar Chart Examples
Go back to top
Example 1: Basic Bar Chart (horizontal axis)
Single Index Row with a single row of data.
FootymaniaEngamicCodesnipptUmaniacLeafytractor
8505100
Example #1 will show up here.
Create Graph
Code:
var t = umaniac_createGraph;
t.init('checkTable1', 'bar' ,
{
target:'target1' ,
label: true,
vertical: true
}
);


Go back to top
Example 2: Basic Bar Chart (vertical axis)
Single Index Column with single column of data (to the right).
Footymania85
Engamic15
Codesnippt5
Umaniac10
Leafytractor10
Umaniac Labs24
Umaniac Developer55
Example #2 will show up here.
Create Graph
Code:
var t = umaniac_createGraph;
t.init('checkTable2', 'bar' ,
{
target:'target2' ,
label: true
}
);
Go back to top
Example 3: Bar Chart (horizontal axis)
Single Index Row (with data in two additional rows). We only want to show the data from the last row and in the 3rd, 4th and 5th columns.

FootymaniaEngamicCodesnipptUmaniacLeafytractor
8505100
90045060320800
The dark cells above is what will show up in the chart below
Example #3 will show up here.
Create Graph
Code:
var t = umaniac_createGraph;
t.init('checkTable4', 'bar' ,
{
target:'target4' ,
label: true,
row_defined: '2',
col_defined: '3,4,5'
}
);

Go back to top
Example 4: Bar Chart (vertical axis)
Single Index Row (with data in two additional columns). We only want to show the data from the last column and in the 2nd, 3rd and 4th rows.

Footymania85134
Engamic035
Codesnippt5422
Umaniac10124
Leafytractor012
The Dark cells is what will pop up in the Chart below.
Example #4 will show up here.
Create Graph
Code:
var t = umaniac_createGraph;
t.init('checkTable4', 'bar' ,
{
target:'target4' ,
label: true,
col_defined: '1',
row_defined: '2,3,4'
}
);

Go back to top
Example 5: Bar Chart (dual axis)
Two indexes. Populate a generic graph in green.

Part 1 Part 2
Footymania85134
Engamic035
Codesnippt5422
Umaniac10124
Leafytractor012
Example #5 will show up here.
Create Graph
Code:
var t = umaniac_createGraph;
t.init('checkTable5', 'bar' ,
{
target:'target5' ,
label: true,
legend: true,
color: 'random'
}
);

Example
ItemNationalityTot%
English Information1033.33
Brazilian Information310
French Information26.67
Example #6 will show up here.
Create Graph
Code:
var t = umaniac_createGraph;
color: 'random' , row_index: 1, reverse: true, col_index: 2, row_defined: '2,3,4' , col_defined: '3,4', } );
t.init('checkTable6', 'bar' ,
{
target:'target6' ,
label: true,
col_index: 2,
row_index: 1,
legend: true,
color: 'random',
reverse: true
}
);