Hi,
I would like to script a stacked bar graph from a data table for which I don't know what the columns will be.
1. Has a data table created with required columns
2. Add a data filter to select the required rows and exclude the remaining
2. Should create a stacked bar graph from the available rows for each column after the first against the first column.
3. Don't know the column names and exact count except for the first column.
I have created a stacked bar graph for one set of data and looks like the following.
I have copied the script from the graph builder and here it is how it looks.
Graph Builder(
Size( 500, 590 ),
Variables(
X( :BIBID ),
Y( :Name( "Row %(Fail, Column2)" ) ),
Y( :Name( "Row %(Fail, Column3)" ), Position( 1 ) ),
Y( :Name( "Row %(Fail, Column4)" ), Position( 1 ) ),
Y( :Name( "Row %(Fail, Column5)" ), Position( 1 ) ),
Y( :Name( "Row %(Fail, Column6)" ), Position( 1 ) ),
Y( :Name( "Row %(Fail, Column7)" ), Position( 1 ) ),
Y( :Name( "Row %(Fail, Column8)" ), Position( 1 ) )
),
Elements(
Bar(
X,
Y( 1 ),
Y( 2 ),
Y( 3 ),
Y( 4 ),
Y( 5 ),
Y( 6 ),
Y( 7 ),
Legend( 4 ),
Bar Style( "Stacked" )
)
)
);
My question is how to parameterize the Variables (Y) and Elements (Y) under Graph Builder through JSL?
Pass Fail Bin