How to change the graph line colors?
I have a datawindow that has a graph datawindow within it (composite).
example: using the dw_1.descripe("DataWindow.Objects") I get back the list of objects in the primary datawindow.
problem_desc
....
....
dw_graph
...etc...
I Would like to be able to set programatically the data line and series name colors.
If it was just a single datawindow graph I can call
dw_1.setdatastyle('gr_1', (series number), (data count#), foreground!, (color)
and that works.
However I cannot seem to grasp the dot notation to access a composite graph datawindow.
I've found that these dot notation statements work...
dw_1.object.dw_graph.object.gr_1.Values.AutoScale = 1
dw_1.object.dw_graph.object.gr_1.backcolor = rgb(255,0,255)
dw_1.object.dw_graph.object.gr_1.title = "test"
these do not work and I get a runtime error
integer li_seriescount
//li_seriescount = dw_1.object.dw_graph.object.gr_1.datacount //does not work
//li_seriescount = dw_1.object.dw_graph.object.gr_1.values.datacount //does not work
//li_seriescount = dw_1.object.dw_graph.object.categorycount //does not work
//li_seriescount = dw_1.object.dw_graph.categorycount //does not work
//dw_1.object.dw_graph.object.gr_1.visible = false //does not work
//dw_1.object.dw_graph.object.visible = false //does not work
//dw_1.object.dw_graph.visible = false //does not work
any help would be greatly appreciated.
mike