Page 1 of 1
Bar-Graph Offset
Posted: Tue Jun 01, 2004 2:29 pm
by 9079769
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?!
Posted: Wed Jun 02, 2004 7:39 am
by Pep
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
Posted: Sun Jun 06, 2004 5:37 am
by 9079769
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.