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 63 64 65
| '// CONTRUCTION DU GRAPHIQUE EXCEL
Dim Ch As ChartObject
Set Ch = xlsfeuille.ChartObjects.Add(10, b, e, d)
With Ch.Chart
.ChartType = xlLineMarkers
.DisplayBlanksAs = xlNotPlotted 'xlInterpolated
End With
Ch.Chart.SeriesCollection.NewSeries
With Ch.Chart.SeriesCollection(1)
.Name = "review Week " & semaine
.Values = rowBilan
.XValues = rowDate
.Interior.Color = "blue"
End With
'' Je souhaiterais que cette série ci-dessus soit rouge si < 6, verte si non !!
Ch.Chart.SeriesCollection.NewSeries
With Ch.Chart.SeriesCollection(2)
.Name = "impacted DL"
.Values = rowImp
.XValues = rowDate
.Interior.Color = "violet"
.ChartType = xlColumnClustered
.AxisGroup = 2
End With
Ch.Chart.SeriesCollection.NewSeries
With Ch.Chart.SeriesCollection(3)
.Name = "no impacted delay"
.XValues = rowDate
.Values = rowNoImp
.Interior.Color = "orange"
.ChartType = xlColumnClustered
.AxisGroup = 2
End With
'Ch.Chart.SeriesCollection.NewSeries
'With Ch.Chart.SeriesCollection(4)
' .Name = "Review 1814"
' .Values = row1814
' .XValues = rowDate
' .Interior.Color = "green"
' .ChartType = xlLineMarkers 'xlXYScatter
'End With
With Ch.Chart
.HasTitle = True
With .ChartTitle
.Characters.Text = " REVIEW WEEK " & semaine
.Shadow = False
End With
With .Axes(xlValue, xlPrimary)
.HasTitle = True
.AxisTitle.Characters.Text = "Indice Of performance"
.MinimumScale = 0
.MaximumScale = 23
End With
With .Axes(xlValue, xlSecondary)
.HasTitle = True
.AxisTitle.Characters.Text = "Time DL"
End With
End With |
Partager