for the first diagram traceObject.diagrams[0].y_axis.mode = AxisScaleMode [...] ")[0] onlineapp.login(OnlineChange