By default, three-dimensional transparency of a chart using an ASP.NET chart control?

like two guys in front of me there and the second there . I have difficulties with 3D graphics.

How to make them be transparent, like this picture: alt text http://i37.tinypic.com/20jk0ls.png

taken from a 3D chart example that comes with ASP.NET chart controls . This chart has a ChartColorPalette.BrightPastel palette, but is transparent.

I also have a three-dimensional chart with the ChartColorPalette.BrightPastel palette , but it is not transparent, and I still cannot find a way to make it transparent, as an example chart. (After examining the markup example and code):

alt text http://i33.tinypic.com/10sbq7p.png

The only way I found is to set the color of the series with an alpha channel for transparency or use a color palette with transparent colors (e.g. ChartColorPalette.SemiTransparent ), but there should be some others by default, which I miss.

Cause. I really need to know this, because I am creating graphics without any code, behind which there is only markup, so I think it's a little redundant to create code snippets just because of this.

Thanks so much for any answers.

: .NET ASP.NET.

+5
3

. :

// After all series manipulation, add this
chart.ApplyPaletteColors();
foreach (var serie in chart.Series)
    serie.Color = Color.FromArgb(220, serie.Color);
+1

, . , -, AFAIK

, , - - , , webapp, - , ? CustomPalette, .

+1

If you use a palette, and not one color for each series, you must set a color for each point:

myChart.ApplyPaletteColors();

foreach (var series in myChart.Series)
{
    foreach (var point in series.Points)
    {
        point.Color = Color.FromArgb(220, point.Color);
    }
}
+1
source

All Articles