I can't find this anywhere. Your help is appreciated.
I want to change the font and color of the series item label in my chart. The properties all seem to be exposed as I have changed every font in the chart so far except this label.
I have tried it several different ways in the code behind as well with no luck.
I can go in and set it via properties, series collection, items but that does not display in the report (just the VS preview). I am databinding in the code behind in new: Chart1.DataSource = _ds.Tables(0)
Suggestions greatly appreciated.
I want to change the font and color of the series item label in my chart. The properties all seem to be exposed as I have changed every font in the chart so far except this label.
I have tried it several different ways in the code behind as well with no luck.
I can go in and set it via properties, series collection, items but that does not display in the report (just the VS preview). I am databinding in the code behind in new: Chart1.DataSource = _ds.Tables(0)
Suggestions greatly appreciated.
Private Sub Chart1_ItemDataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles Chart1.ItemDataBound
Chart1.Series(1).Appearance.TextAppearance.TextProperties.Color = Color.Red
Dim myseries As ChartSeries
Dim myitem As ChartSeriesItem
For Each myseries In Chart1.Series
myseries.Appearance.TextAppearance.TextProperties.Color = Color.Red
For Each myitem In myseries.Items
myitem.Label.TextBlock.Appearance.TextProperties.Color = Color.Red
myitem.Label.TextBlock.Text = "xxxx"
Next
Next
End Sub