TeeChart for ActiveX, COM and ASP
-
ProgLabs
- Newbie

- Posts: 11
- Joined: Wed Nov 12, 2003 5:00 am
- Location: New York
Post
by ProgLabs » Tue Jun 01, 2004 2:29 pm

I am looking for a way to display the TeeChart bar graph in such a way that the bars start from 100 and draw up or down depending on the value. What I mean is if the value I am trying to display is 80, I need the bar to start from 100 and draw down to 80. If I want to display a value of 125, then the bar has to start at 100 and draw up to 125.
How can I do this? Please help?!
-
Pep
- Site Admin

- Posts: 3313
- Joined: Fri Nov 14, 2003 5:00 am
-
Contact:
Post
by Pep » Wed Jun 02, 2004 7:39 am
Hi,
you can use the Origin property :
Code: Select all
Private Sub Form_Load()
With TChart1
.Aspect.View3D = False
.AddSeries scBar
.Series(0).asBar.Origin = 100
.Series(0).AddXY 0, 80, "", clTeeColor
.Series(0).AddXY 1, 125, "", clTeeColor
End With
End Sub
-
ProgLabs
- Newbie

- Posts: 11
- Joined: Wed Nov 12, 2003 5:00 am
- Location: New York
Post
by ProgLabs » Sun Jun 06, 2004 5:37 am
I am using the 3D bar graph series. In either case I tried to use the origin property as:
tcBarGraph.Series(0).asBar3D.Origin = 100
tcBarGraph.Series(0).asBar3D.UseOrigin = True
And this appears to have no effect on the bar graph whatsoever. Please help.