Jump to content
Software FX Community

Transparent chart


User (Legacy)

Recommended Posts

I am having problems making my chart transparent. I have set the chart

HtmlTag to PNG format and the BackColor to Transparent, but the chart keeps

rendering with the default light blue background.

My control's markup is:

<chartfx:Chart id="myChart" runat="server" BackColor="Transparent"

NSeries="1" LegendBox="True" ImgWidth="650" ImgHeight="220" Enabled="false"

BorderColor="White" Gallery="Pie" HtmlTag="png">

<Extensions>

<SoftwareFX.ChartFX.Internet.Server.GalleryObj.Pie MinPercentage="2"

LabelsInside="False"></SoftwareFX.ChartFX.Internet.Server.GalleryObj.Pie>

<SoftwareFX.ChartFX.DefaultBorder Color="Transparent"

AssemblyName="ChartFX.Base"></SoftwareFX.ChartFX.DefaultBorder>

</Extensions>

</chartfx:Chart>

Thanks,

Stephen

Link to comment
Share on other sites

  • 4 weeks later...

Guys,

I still can't get my PNG chart to render transparent. What do I need to do?

Stephen

"Stephen Miller" <chartfx@3la.com.au> wrote in message

news:DmIhlyz0DHA.3808@WEBSERVER1...

> I am having problems making my chart transparent. I have set the chart

> HtmlTag to PNG format and the BackColor to Transparent, but the chart

keeps

> rendering with the default light blue background.

>

> My control's markup is:

>

> <chartfx:Chart id="myChart" runat="server" BackColor="Transparent"

> NSeries="1" LegendBox="True" ImgWidth="650" ImgHeight="220"

Enabled="false"

> BorderColor="White" Gallery="Pie" HtmlTag="png">

> <Extensions>

> <SoftwareFX.ChartFX.Internet.Server.GalleryObj.Pie MinPercentage="2"

> LabelsInside="False"></SoftwareFX.ChartFX.Internet.Server.GalleryObj.Pie>

> <SoftwareFX.ChartFX.DefaultBorder Color="Transparent"

> AssemblyName="ChartFX.Base"></SoftwareFX.ChartFX.DefaultBorder>

> </Extensions>

> </chartfx:Chart>

>

> Thanks,

>

> Stephen

>

>

Link to comment
Share on other sites

Dear Stephen,

This feature used to work in our COM products because we wrote our own PNG

Image Generator. When we moved to .NET we started using the built in .NET

ImageGenerator which appears to have some issues with it.

If you look at the image saved in the temp directory it actually does not

have colors where you see the blue. IE changes those black pixels to Blue.

We were able to show our generated image in a browser using this syntax

<span

style="FILTER:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/chart

fx62/temp/CFT0202_04210730C4B.png');WIDTH:328px;HEIGHT:328px">

<img style="FILTER:progid:DXImageTransform.Microsoft.Alpha(opacity=0)"

src="/chartfx62/temp/CFT0202_04210730C4B.png"

width="328" height="328" border="0" alt="">

</span>

Please see Here:

http://www.howtocreate.co.uk/alpha.html

But it is not possible to know the name of the image when GetHtmlTag is

called, so it is complicated.

We are working on this issue now as no one else has reported the issue.

Sorry for not responding to you in a timely manner and thank you for

choosing SoftwareFX!

-CJS

"Stephen Miller" <chartfx@3la.com.au> wrote in message

news:HVJDPLW6DHA.2468@webserver3.softwarefx.com...

> Guys,

>

> I still can't get my PNG chart to render transparent. What do I need to

do?

>

> Stephen

>

>

>

> "Stephen Miller" <chartfx@3la.com.au> wrote in message

> news:DmIhlyz0DHA.3808@WEBSERVER1...

> > I am having problems making my chart transparent. I have set the chart

> > HtmlTag to PNG format and the BackColor to Transparent, but the chart

> keeps

> > rendering with the default light blue background.

> >

> > My control's markup is:

> >

> > <chartfx:Chart id="myChart" runat="server" BackColor="Transparent"

> > NSeries="1" LegendBox="True" ImgWidth="650" ImgHeight="220"

> Enabled="false"

> > BorderColor="White" Gallery="Pie" HtmlTag="png">

> > <Extensions>

> > <SoftwareFX.ChartFX.Internet.Server.GalleryObj.Pie MinPercentage="2"

> >

LabelsInside="False"></SoftwareFX.ChartFX.Internet.Server.GalleryObj.Pie>

> > <SoftwareFX.ChartFX.DefaultBorder Color="Transparent"

> > AssemblyName="ChartFX.Base"></SoftwareFX.ChartFX.DefaultBorder>

> > </Extensions>

> > </chartfx:Chart>

> >

> > Thanks,

> >

> > Stephen

> >

> >

>

>

Link to comment
Share on other sites

  • 2 weeks later...

We have included support for transparent PNGs in our internal build, it will

show up in any hotfix/service pack with build 1505 or later.

Note that this fix is required because Internet Explorer does not correctly

render 32-bit PNGs with Alpha. IE on the mac and other OSes do not require

this workaround.

We will be using the AlphaImageLoader filter when a non-opaque chart

(BackColor.A != 255) is requested and the browser is IE 5.5. or later. Note

that Win2K server and Win2003 cannot show this (I assume it is because of

DirectX not being installed) so we will default to our prev behavior for any

browser marked as version 5.0 and/or 5.2. Unfortunately this includes Win2K

workstation. This behavior can be changed through the

ChartFX.Internet.Config

<PngWriter>

<Servers>true</Servers>

</PngWriter>

--

Regards,

JC

Software FX Support

"Stephen Miller" <chartfx@3la.com.au> wrote in message

news:HVJDPLW6DHA.2468@webserver3.softwarefx.com...

> Guys,

>

> I still can't get my PNG chart to render transparent. What do I need to

do?

>

> Stephen

>

>

>

> "Stephen Miller" <chartfx@3la.com.au> wrote in message

> news:DmIhlyz0DHA.3808@WEBSERVER1...

> > I am having problems making my chart transparent. I have set the chart

> > HtmlTag to PNG format and the BackColor to Transparent, but the chart

> keeps

> > rendering with the default light blue background.

> >

> > My control's markup is:

> >

> > <chartfx:Chart id="myChart" runat="server" BackColor="Transparent"

> > NSeries="1" LegendBox="True" ImgWidth="650" ImgHeight="220"

> Enabled="false"

> > BorderColor="White" Gallery="Pie" HtmlTag="png">

> > <Extensions>

> > <SoftwareFX.ChartFX.Internet.Server.GalleryObj.Pie MinPercentage="2"

> >

LabelsInside="False"></SoftwareFX.ChartFX.Internet.Server.GalleryObj.Pie>

> > <SoftwareFX.ChartFX.DefaultBorder Color="Transparent"

> > AssemblyName="ChartFX.Base"></SoftwareFX.ChartFX.DefaultBorder>

> > </Extensions>

> > </chartfx:Chart>

> >

> > Thanks,

> >

> > Stephen

> >

> >

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...