Voici un code qui génère cette erreur.Pourquoi cela se produit-il ?Je n'ai aucune idée.
// Statuts des ventilateurs par rapport aux graphiques d'occupation
For( j = 1, j <= N Items( var ), j++, //Boucle externe pour parcourir la liste des variables
v1 = Char( "Heure " || var[j] || "_FanStatus" );
v2 = Char( var[j] || "_FanStatus" );
obj = Générateur de graphes(
Taille( 1400 800 ),
Variables( X( Column( v1 ) ), X( :Time Final, Position( 1 ) ), Y( Column( v2 ) ), Color( :Occupancy ) ),
Elements( Line( X( 1 ), Y, Color( 0 ), Legend( 2 ), Connection( "Step" ) ), Heatmap( X( 2 ), Legend( 3 ) ) ),
EnvoyerVersRapport(
Dispatch( {"Ligne"}, "", OutlineBox, {Fermer( 0 )} ),
Dispatch( {"Heatmap"}, "", OutlineBox, {Fermer( 0 )} ),
Expédition(
{},
v1,
ScaleBox,
{Min( :Time Final[1] ), Max( :Time Final[N Rows( :Time Final )] ), Interval( "Minute" ), Inc( 15 ), Minor Ticks( 0 ), Label Row( Label Orientation ( "Anglé" ) )}
),
Expédition(
{},
"400",
ScaleBox,
{Modèle de légende(
3,
Propriétés( 0, {Transparence( 0.5 )}, ID d'article( "Occupé", 1 ) ),
Propriétés( 1, {Couleur de remplissage( 4 ), Transparence( 0.5 )}, ID d'article( "OptStart", 1 ) ),
Propriétés( 2, {Couleur de remplissage( 2 ), Transparence( 0 )}, ID d'article( "Inoccupé", 1 ) )
)}
),
Dispatch( {}, "titre du graphique", TextEditBox, {Set Text( "Raney "|| v2 || " vs. Occ" )} )
)
);
obj << Journal << Fermer la fenêtre ;
);