If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > I get 2D graph insted of 3D

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-27-03, 09:16
liorlank liorlank is offline
Registered User
 
Join Date: Nov 2003
Posts: 22
I get 2D graph insted of 3D

I have the follwing code of create 3D Graph

<%

Set oChart = CreateObject("OWC10.ChartSpace")
Set c = oChart.Constants
oChart.Border.Color = c.chColorNone

sCaption = " 2003 "
sCaption2 = "2002 "

With oChart

oChart.Charts.Add
oChart.Charts(0).Type = oChart.Constants.chChartTypeColumn3d
oChart.Charts(0).SeriesCollection.Add
oChart.Charts(0).SeriesCollection(0).Caption = sCaption
oChart.Charts(0).SeriesCollection(0).SetData c.chDimCategories, c.chDataLiteral, Categories
oChart.Charts(0).SeriesCollection(0).SetData c.chDimValues, c.chDataLiteral, Vals2

End With

With oChart

oChart.Charts(0).SeriesCollection.Add
oChart.Charts(0).SeriesCollection(1).Caption = sCaption2
oChart.Charts(0).SeriesCollection(1).SetData c.chDimCategories, c.chDataLiteral, Categories
oChart.Charts(0).SeriesCollection(1).SetData c.chDimValues, c.chDataLiteral, Vals

oChart.Charts(0).HasLegend = True
oChart.Charts(0).HasTitle = False

End With

oChart.Charts(0).Axes(c.chAxisPositionLeft).MajorU nit = "10"

Response.Expires = 0
Response.Buffer = true
Response.Clear

Set Session("FSO") = CreateObject("Scripting.FileSystemObject")
sFname = "Grsph" & ".gif"
oChart.ExportPicture server.MapPath(sFname), "gif", 650, 450
Response.Write "<img src='" & sFname & "'>"

%>


The problem is that I get 2D Graph insted of 3D Graph and the fron columns hode the back columns?

What's the problem??? What Did I do wrong???
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On