Print Page | Close Window

How can I changed the colors of the StackedBarChar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=17534
Printed Date: 24 November 2024 at 12:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How can I changed the colors of the StackedBarChar
Posted By: ArthurRRS
Subject: How can I changed the colors of the StackedBarChar
Date 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



Replies:
Posted By: Aaron
Date 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....


Posted By: ArthurRRS
Date 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


Posted By: Aaron
Date Posted: 08 November 2010 at 12:06pm
Hi,
 
I guess you do something wrong... Wink
 
here's test project  http://forum.codejock.com/uploads/3701/ChartBrowser_Stacked_V1.zip - uploads/3701/ChartBrowser_Stacked_V1.zip
 
 


-------------
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....


Posted By: Oleg
Date Posted: 08 November 2010 at 12:24pm
Hi,

Yes, maybe you assigned same Style to all Series.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ArthurRRS
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net