Sign in to follow this  
majid

Background Image And Canvas

Recommended Posts

For some reason the background image is applied around the canvas but not on the canvas itself. as a result the chart has a white background but all around it my bg image is visible. Here is what I am using to style my chart:

 

 

//anchor styling

DrawAnchors = 1,

AnchorBgColor = "ffffff",

AnchorBorderThickness = 1,

AnchorAlpha = 100,

 

//gridlines

showAlternateHGridColor = 0,

divLineIsDashed = 1,

baseFontColor = "ffffff",

outCnvBaseFontColor = "fff",

showToolTip = 0,

 

//chart styling

showBorder = 0,

showYAxisValues = 1,

showLegend=0,

chartTopMargin= "50",

plotGradientColor=" ",

//background image

bgImage = "/Content/images/bg.png",

bgImageDisplayMode = "Tile",

 

How can I get the background image applied to the entire area and have no white background behind the chart (on the canvas)

post-28123-0-09802200-1336423289_thumb.png

Edited by majid

Share this post


Link to post
Share on other sites
Guest Sumedh

For some reason the background image is applied around the canvas but not on the canvas itself. as a result the chart has a white background but all around it my bg image is visible. Here is what I am using to style my chart:

 

 

//anchor styling

DrawAnchors = 1,

AnchorBgColor = "ffffff",

AnchorBorderThickness = 1,

AnchorAlpha = 100,

 

//gridlines

showAlternateHGridColor = 0,

divLineIsDashed = 1,

baseFontColor = "ffffff",

outCnvBaseFontColor = "fff",

showToolTip = 0,

 

//chart styling

showBorder = 0,

showYAxisValues = 1,

showLegend=0,

chartTopMargin= "50",

plotGradientColor=" ",

//background image

bgImage = "/Content/images/bg.png",

bgImageDisplayMode = "Tile",

 

How can I get the background image applied to the entire area and have no white background behind the chart (on the canvas)

 

 

 

 

Hi,

 

You can use canvasBgAlpha attribute under the chart element. This attribute allows you to set transparency of the chart canvas.

 

Ref. Code:

<Chart ... canvasBgAlpha='0'>

Share this post


Link to post
Share on other sites

Hi,

 

You can use canvasBgAlpha attribute under the chart element. This attribute allows you to set transparency of the chart canvas.

 

Ref. Code:

<Chart ... canvasBgAlpha='0'>

 

Thanks this worked perfectly!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this