Hello,
I have a graph with one layer and multiple line plots. The columns providing the data for the plots have long names like "V=-5", V="4" and "V=15". These names also appear when you add a legend. I want to change the color of each plot, according to this name.
I can access and recolor all graphs without a problem
GraphLayer gl = Project.ActiveLayer();
if( !gl.IsValid() ) {
out_str( "Please activate the graph to color" );
exit(0);
}
out_str("Coloring");
foreach( DataPlot dp in gl.DataPlots ) {
dp.SetColor(RGB2OCOLOR(RGB(123,45,67)), true);
}
I also don't expect any problems deriving a color from a descriptive string. I cannot, however, find the longname I need. All I manage to retrieve is the DatasetName (for example "Book37_AI").
How can I retrieve the long name of the column?