views:

380

answers:

2

I'm working with the ASP.NET Charting Library and I've got it generating a pie chart but I'm having a problem configuring it to generate the pie chart with semi-transparent slices. If you look at the image you'll see what I'm talking about. Of the 4 pie charts the top 2 and the bottom left chart have the pie slice transparency I'm talking about.

Charting Control Image

What settings of the chart do I tweak to render the slices with a certain % of transparency?

Thanks!

+3  A: 

Try assigning the color of the series to a color with alpha transparency, like so:

Chart1.Series(0).Color = Color.FromArgb(128, 255, 0, 0) //transparent red

Taken from this thread.

Matthew Jones
@Matthew: Thank you! That's it!
Ryan
+1 for the reference
Ryan
A: 

I think that accepted question is not acceptable for me.

I've been looking into examples and there are charts in 3d mode with BrightPastel palette transparent. But I haven't found any transparency setting for them ...

I'm using those controls from my own markup language and I dont want to set the colours by iteratin them anch adding alpha channels like that. :(

But now it is the only possibility to do that. Or not?

Crank