Salut,
Je crée un script de création de graphes en traçant et en enregistrant manuellement le script dans la table de données. Pour l'instant voici ce que j'ai :
//User declares Bottom_Var, Left_Var, Top_Var, Right_Var, and Legend_Var
//Legend_Var is the cell grouping whose number may vary
Graph Builder(
Size( 1173, 638 ),
Show Control Panel( 0 ),
Variables(
X( Bottom_Var ),
Y( Left_Var ),
Group X( Top_Var ),
Group Y( Right_Var),
Overlay( Legend_Var )
),
Elements( Points( X, Y, Legend( 20 ) ), Smoother( X, Y, Legend( 21 ) ) ),
SendToReport(
Dispatch( {}, "Graph Builder", FrameBox, {Line Width Scale( 3 )} ),
Dispatch( {}, "Graph Builder", FrameBox( 2 ), {Line Width Scale( 3 )} ),
Dispatch( {}, "Graph Builder", FrameBox( 3 ), {Line Width Scale( 3 )} ),
Dispatch( {}, "Graph Builder", FrameBox( 4 ), {Line Width Scale( 3 )} ),
Dispatch( {}, "Graph Builder", FrameBox( 5 ), {Line Width Scale( 3 )} ),
Dispatch( {}, "Graph Builder", FrameBox( 6 ), {Line Width Scale( 3 )} ),
Dispatch( {}, "Graph Builder", FrameBox( 7 ), {Line Width Scale( 3 )} ),
Dispatch( {}, "Graph Builder", FrameBox( 8 ), {Line Width Scale( 3 )} ),
Dispatch( {}, "Graph Builder", FrameBox( 9 ), {Line Width Scale( 3 )} ),
Dispatch( {}, "Graph Builder", FrameBox( 10 ), {Line Width Scale( 3 )} )
)
)Maintenant, le problème avec ce script est que la définition de la largeur de ligne dépend du nombre de groupes de cellules. Existe-t-il un moyen de définir le paramètre de largeur de ligne de manière plus élégante (comme la fonction Fit Y by X) ?
Merci,
Shaira
Pouvez-vous préciser quel est le problème?Les lignes plus lisses deviennent-elles trop étroites à mesure que le nombre de niveaux dans la variable Overlay augmente ?