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
| Response.ContentType = "image/gif"
dim graphtype
dim myyear
dim mycat
dim myval1
dim myval2
dim myval3
dim mygraphtitle
dim myid
dim TraceID
myval = 12 & chr(9) & 15 & chr(9) & 10 & chr(9) & 08 & chr(9) & 21 & chr(9) & 14 & chr(9) & 16
mycat = 1 & chr(9) & 2 & chr(9) & 3 & chr(9) & 4 & chr(9) & 5 & chr(9) & 6 & chr(9) & 7
Response.Expires = 0
Response.Buffer = True
Response.Clear
PictType = "gif"
set mychartsp = Server.CreateObject ("OWC11.ChartSpace")
set chConstants = myChartsp.Constants
myChartsp.Clear
myChartsp.Charts.Add
mychartsp.charts(0).PlotArea.Interior.Color = rgb(256,256,256)
set objSeries1 = mychartsp.charts(0).SeriesCollection.Add
objSeries1.Caption = "Turnaround Time"
objSeries1.SetData chConstants.chDimCategories, chConstants.chDataLiteral, mycat
objSeries1.SetData chConstants.chDimValues, chConstants.chDataLiteral, myval
mychartsp.charts(0).SeriesCollection(0).Explosion = 40
mychartsp.charts(0).SeriesCollection(0).DataLabelsCollection(0).HasPercentage = True 'Cette ligne me donne une erreur
mychartsp.charts(0).SeriesCollection(0).DataLabelsCollection(0).HasCategoryName = True 'Cette ligne me donne une erreur
objSeries1.type = chConstants.chChartTypePieExploded3D
myChartsp.Charts(0).HasTitle = True
mychartsp.Charts(0).HasLegend = true
myChartsp.Charts(0).Title.Caption = "YTD Turnaround Time"
dim a
a = myChartsp.GetPicture(PictType, 500, 340)
response.BinaryWrite(a) |
Partager