Question Rapport Graphique

Plus d'informations
il y a 9 ans 10 mois #21799 par Mo
Rapport Graphique a été créé par Mo
Bonjour,

J'ai mis en place un script de reporting graphique, tout se passe bien sauf l'affichage des Lebels dans le graph.

En effet, j'ai 6 valeurs et dans le graph seul 4 s'affichent :[img size=150][/img]

[code:1] If ($V_GraphiqueV -eq '0')

{
$V_GraphiqueV = $V_GraphiqueV + 1

$MailOpen.Width = 600

$V_DataV = @{HS_PRD=$T_MailHSP.Text; PS_PRD=$T_MailPSP.Text }
$V_DataV2 = @{HS_PRD=$T_MailHSP2.Text; PS_PRD=$T_MailPSP2.Text}
$V_DataV3 = @{HS_PRD=$T_MailHSP3.Text; PS_PRD=$T_MailPSP3.Text};
$V_DataV4 = @{U_PRD=$T_MailUP.Text; L_PRD=$T_MailLP.Text; C_DEV=$T_MailCD.Text; C_POD=$T_MailCP.Text }
$G_GraphiqueV.Series[\"DataV\"].Points.DataBindXY($V_DataV.Keys, $V_DataV.Values)
$G_GraphiqueV.Series[\"DataV2\"].Points.DataBindXY($V_DataV2.Keys, $V_DataV2.Values)
$G_GraphiqueV.Series[\"DataV3\"].Points.DataBindXY($V_DataV3.Keys, $V_DataV3.Values)
$G_GraphiqueV.Series[\"DataV4\"].Points.DataBindXY($V_DataV4.Keys, $V_DataV4.Values)

# Détermine les couleurs ===========================================
$G_GraphiqueV.Series[\"DataV\"].Color = [System.Drawing.Color]::Blue

$G_GraphiqueV.Series[\"DataV2\"].Color = [System.Drawing.Color]::Red

$G_GraphiqueV.Series[\"DataV3\"].Color = [System.Drawing.Color]::Magenta

$G_GraphiqueV.Series[\"DataV4\"].Color = [System.Drawing.Color]::Cyan

$G_GraphiqueV.BackColor = [System.Drawing.Color]::Transparent
$G_GraphiqueV.Series[\"DataV\"][\"DrawingStyle\"]=\"Cylinder\"
$G_GraphiqueV.Series[\"DataV\"].IsValueShownAsLabel = $true

$G_GraphiqueV.Series[\"DataV2\"][\"DrawingStyle\"]=\"Cylinder\"
$G_GraphiqueV.Series[\"DataV2\"].IsValueShownAsLabel = $true

$G_GraphiqueV.Series[\"DataV3\"][\"DrawingStyle\"]=\"Cylinder\"
$G_GraphiqueV.Series[\"DataV3\"].IsValueShownAsLabel = $true

$G_GraphiqueV.Series[\"DataV4\"][\"DrawingStyle\"]=\"Cylinder\"
$G_GraphiqueV.Series[\"DataV4\"].IsValueShownAsLabel = $true

$MailOpen.controls.add($G_GraphiqueV)
}[/code:1]
Je sèche, je ne vois pas ou j'ai pu oublier quelque chose!

Si quelqu'un peut me sauver.
Merci beaucoup et bonne journée.
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 9 ans 10 mois #21806 par Laurent Dardenne
Réponse de Laurent Dardenne sur le sujet Re:Rapport Graphique
Salut,
Mcdolyod écrit:

Je sèche, je ne vois pas ou j'ai pu oublier quelque chose!

As-tu vérifié la 'surface' d'affichage ?

Tutoriels PowerShell

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 9 ans 10 mois #21812 par Mo
Réponse de Mo sur le sujet Re:Rapport Graphique
Bonjour Laurent,
merci de ta réponse, oui l'affichage est bon, je l'ai même agrandi, j'ai l'impression qu'il y a un nombre maximum d'affichage des étiquettes.

[code:1]$G_GraphiqueV = New-Object System.Windows.Forms.DataVisualization.Charting.Chart
$G_GraphiqueV.Anchor = [System.Windows.Forms.AnchorStyles]::Bottom -bor [System.Windows.Forms.AnchorStyles]::Right -bor [System.Windows.Forms.AnchorStyles]::Top -bor [System.Windows.Forms.AnchorStyles]::Left
$G_GraphiqueV.Width = 420
$G_GraphiqueV.Height = 310
$G_GraphiqueV.Left=600
$G_GraphiqueV.Top= 100
$G_GraphiqueV.Series.Add(\"DataV\"«»)
$G_GraphiqueV.Series.Add(\"DataV2\"«»)
$G_GraphiqueV.Series.Add(\"DataV3\"«»)
$G_GraphiqueV.Series.Add(\"DataV4\"«»)[/code:1]

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.044 secondes
Propulsé par Kunena