Looks like this property is not available via theme access, so LT is needed. You need to use proper graph layer's LT_execute,
void sy(int nSet)
{
GraphPage gp = Project.Pages();
if(!gp)
return;
foreach(GraphLayer gl in gp.Layers)
{
string strLT = "layer.Y.reverse=" + nSet;
gl.LT_execute(strLT);
}
}
CP