Jump to content


Bgcolor


  • Please log in to reply
1 reply to this topic

#1 JasonH

JasonH

    Forum Newbie

  • Members
  • 1 posts

Posted 29 July 2011 - 09:22 AM

Gents



Here is what I have - I'm using Fusion Chart for VB



When changing the BGColor - it seems to work fine with;
K58_Status.BGColor = "0F0F0F"


K58_Status.BGColor = "CCCCCC"

K58_Status.BGColor = "000FFF"



but trying to get the BackGround Colour to be White, Green or Red??



The below is the form BackColor and the VB Codes I’d like to match – What are the .BGColor color codes?


An urgent reply would be greatful

Thank you

Jason

Attached Files



#2 Rahul Kumar

Rahul Kumar

    Supreme Being

  • Moderators
  • 1150 posts

Posted 29 July 2011 - 10:19 AM

Hi Jason,

I am afraid, instead of using:

K58_Status.BGColor = "0F0F0F"
K58_Status.BGColor = "CCCCCC"
K58_Status.BGColor = "000FFF"

Please use this:

Call K58_Status.Data.setChartParams("bgcolor=0F0F0F")
Call K58_Status.Data.setChartParams("bgcolor=CCCCCC")
Call K58_Status.Data.setChartParams("bgcolor=000FFF")

The code that you are using will just change the chart's container background color not chart's background color. To change chart's background color you will have to pass "bgColor" attribute in setChartParams method.

Hope this helps.



Regards,
Rahul Kumar
Tech Lead


A byte of magic.