1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
'***********************
'Propriété du Chart
'***********************
chartRepartEdit.Theme = "Theme1"
If windowPrin.cbxGraph3D.SelectedIndex <> -1 Then
chartRepartEdit.View3D = tabGraph3D(windowPrin.cbxGraph3D.SelectedIndex)
Else
chartRepartEdit.View3D = False
End If
chartRepartEdit.AnimationEnabled = True
chartRepartEdit.AnimatedUpdate = True
'Création d'un DataSeries
Dim seriesRepartEdit As New DataSeries
'***********************
'Propriété du DataSeries
'***********************
'Style du graphique
If windowPrin.cbxGraphType.SelectedIndex <> -1 Then
seriesRepartEdit.RenderAs = tabGraphType(windowPrin.cbxGraphType.SelectedIndex)
Else
seriesRepartEdit.RenderAs = RenderAs.Pie
End If
'Apparence des label lorsqu'on pointe un élément
seriesRepartEdit.LabelText = "#AxisXLabel"
seriesRepartEdit.ToolTipText = "#AxisXLabel, #YValue série(s) soit #Percentage %"
For j = 0 To listeStats2.Count - 1
'Création d'un point
Dim datapointRepartEdit As New DataPoint()
datapointRepartEdit.YValue = listeStats2(j)
datapointRepartEdit.AxisXLabel = listeStats(j).ToString
'Ajoute le datapointRepartEdit à dataseriesRepartEdit
seriesRepartEdit.DataPoints.Add(datapointRepartEdit)
Next
'Ajoute le DataSeries au Chart
chartRepartEdit.Series.Add(seriesRepartEdit)
Grid.SetRow(chartRepartEdit, 2)
Grid.SetColumn(chartRepartEdit, 0)
windowPrin.GridStats.Children.Add(chartRepartEdit) |
Partager