Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Chart Control
  New Posts New Posts RSS Feed - How can I changed the colors of the StackedBarChar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How can I changed the colors of the StackedBarChar

 Post Reply Post Reply
Author
Message
ArthurRRS View Drop Down
Newbie
Newbie
Avatar

Joined: 06 November 2010
Location: Granite Bay, CA
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote ArthurRRS Quote  Post ReplyReply Direct Link To This Post Topic: How can I changed the colors of the StackedBarChar
    Posted: 06 November 2010 at 8:36pm

How can I change the colors of the Stacked Bar Chart? For example change the light blue to green and keep the dark blue.

 
arthurRRS
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 08 November 2010 at 2:44am
Hi,
 
Change style of Series(0)
 
ChartControl.Content.Series(0).Style.Color = vbGreen
 
Hope this helps Wink
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
ArthurRRS View Drop Down
Newbie
Newbie
Avatar

Joined: 06 November 2010
Location: Granite Bay, CA
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote ArthurRRS Quote  Post ReplyReply Direct Link To This Post Posted: 08 November 2010 at 10:37am
Hi Aaron, I tried that but each segment of the bar gets changed to the last color specified.
 
    ChartCPUsage.Content.Series(0).Style.Color = vbGreen
    ChartCPUsage.Content.Series(1).Style.Color = vbYellow
    ChartCPUsage.Content.Series(2).Style.Color = vbBlue
 
arthurRRS
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 08 November 2010 at 12:06pm
Hi,
 
I guess you do something wrong... Wink
 
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 08 November 2010 at 12:24pm
Hi,

Yes, maybe you assigned same Style to all Series.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ArthurRRS View Drop Down
Newbie
Newbie
Avatar

Joined: 06 November 2010
Location: Granite Bay, CA
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote ArthurRRS Quote  Post ReplyReply Direct Link To This Post Posted: 13 November 2010 at 11:50am
So it turns out that I was setting the BarWidth using the wrong object. ! I was depending upon code completion to understand where I could set BarWidth. Documentation shows I can set it using Style.
 
 
 
 
Thanks - it is working. Very nice product!!!
arthurRRS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.