Is there any way to make the bar chartseriesitem non transparent when using the gradient fillstye? It doesn't seem like this should be the default, and the main / second color opacity is read only. I have a simple function that builds a couple of series for the chart, and the user wants the bars to not have transparency.
Public
Sub
SetChartSeries()
Dim
oList
As
New
List(Of tblDashboardStat)
Dim
db
As
New
BusIntDataContext
Dim
oSeriesPrior
As
New
ChartSeries
Dim
oSeriesCur
As
New
ChartSeries
oList = (From d
In
db.tblDashboardStats
Where d.statGroupID = 1
Order By d.statSeriesName Descending, d.statSeriesOrder Ascending).ToList
For
Each
item
As
tblDashboardStat
In
oList
Dim
oChartSeriesItem
As
New
ChartSeriesItem((item.statSeriesValue1) / 1000000)
oChartSeriesItem.Appearance.Border.Color = Drawing.ColorTranslator.FromHtml(item.statSeriesColor)
oChartSeriesItem.Appearance.FillStyle.FillType = Styles.FillType.Gradient
'oChartSeriesItem.Appearance.FillStyle.MainColorOpacity ---> THIS IS READ ONLY
oChartSeriesItem.Appearance.FillStyle.MainColor = Drawing.ColorTranslator.FromHtml(item.statSeriesColor)
oChartSeriesItem.ActiveRegion.Tooltip =
String
.Format(
"{0:n1}"
, item.statSeriesValue1)
If
item.statSeriesName =
"Prior"
Then
oSeriesPrior.Items.Add(oChartSeriesItem)
hdnColor1.Value = item.statSeriesColor
Else
oSeriesCur.Items.Add(oChartSeriesItem)
hdnColor2.Value = item.statSeriesColor
End
If
Next
rcTotalBilling.Series.Add(oSeriesPrior)
rcTotalBilling.Series.Add(oSeriesCur)
End
Sub