Inverted Bar Graph

TeeChart for ActiveX, COM and ASP
Post Reply
ProgLabs
Newbie
Newbie
Posts: 11
Joined: Wed Nov 12, 2003 5:00 am
Location: New York

Inverted Bar Graph

Post by ProgLabs » Sat Jan 31, 2004 9:12 pm

:?: I am trying to display a graph of percentages in an inverted fashion. What I mean by that is that if I want to display 80%, I need to start the bar at 100% and go down 20 points to show 80%.

Please help!

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Feb 02, 2004 10:57 am

Hi,

this can be done using :

Code: Select all

Private Sub Form_Load()
With TChart1
    .Aspect.View3D = False
    .AddSeries scBar
    .Series(0).AddXY 0, 50, "", clTeeColor
    .Series(0).AddXY 1, 80, "", clTeeColor
    .Series(0).AddXY 2, 60, "", clTeeColor
    .Series(0).asBar.Origin = 100
End With
End Sub

ProgLabs
Newbie
Newbie
Posts: 11
Joined: Wed Nov 12, 2003 5:00 am
Location: New York

Thanks a bunch

Post by ProgLabs » Sat Feb 07, 2004 6:23 am

Thank you very much, works great!

Post Reply