I am trying to plot something on variability chart repeatedly with same X values but different Y.
Initially, I made X as one variable and subsequent code refers to the same X with different Y every time:
//-------------Begin code------------------
dt << Group Columns( "xlist", {:oceans, :continents, :volcanoes} );
//-------- Call variability charts-------//
Variability Chart(
Y( :Name( "Planet" ) ),
X(dt << get column group( "xlist" )),
..........
//------------End Code--------------------
Right now I have three columns in xlist: oceans,continents,volcanoes, which go to X argument list of Variability chart.
Assume there are 100 more columns like this in data table.
1) I want to present the user a choice to edit contents of xlist in a GUI pop-up window.
The user can add more columns or delete any of pre-selected columns.
He may choose to not to modify anything and this list goes unedited to X variable then.
2) I wish the order of items passed to the argument is retained.
Right now the variability chart does not retain the original sequence of items while arranging on the x-axis.
Perhaps get column group( "xlist" ) returns the contents in a different order than assigned to xlist.
I tried it using lists and Eval but it did not help to retain order.
I wish to control the order of x-arguments when they are plotted on variability chart.
Please suggest the best way of implementing this.
Thanks.