Hi,
I think there are two possible situations for your case. The first one is that all your curves are independent from each other (not grouped). For this, you can try
foreach(GraphLayer gl in gp.Layers) // loop all graph layers in the graph page, gp is GraphPage
{
foreach(DataPlot dp in gl.DataPlots) // loop all data plots in the graph layer
{
Tree trPlot;
trPlot.Root.Line.Connect.nVal = 6; // set horizontal
if(0 == dp.UpdateThemeIDs(trPlot.Root)) // if no err
{
dp.ApplyFormat(trPlot, true, true); // set format
}
}
}
If the data plots are grouped together in the graph layer, you can refer to the following code.
GroupPlot gplot = gl0.Groups(0); // get the first grouped plots
Tree trPlot;
trPlot.Root.Line.Connect.nVal = 6; // set horizontal
if(0 == gplot.UpdateThemeIDs(trPlot.Root)) // if no err
{
gplot.ApplyFormat(trPlot, true, true); // set format
}
Penn