ASP.NET图表控件透明度 [英] ASP.NET Charting Control Transparency

查看:185
本文介绍了ASP.NET图表控件透明度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与ASP.NET图表图书馆工作,我已经得到它生成饼状图,但我在配置它来生成半透明片饼图的一个问题。如果你看一下图片你就会明白我在说什么。 4饼图顶部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.

什么设​​置图表做我调整的透明度某种%呈现片?

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

谢谢!

推荐答案

试着用alpha透明度分配系列的颜色为一种颜色,就像这样:

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

从<一个拍摄href=\"http://social.msdn.microsoft.com/Forums/en/MSWinWebChart/thread/519f75de-909d-4933-bbc6-dad434b85544\">this螺纹。

这篇关于ASP.NET图表控件透明度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆