Hello,
I'm currently working with telerik reporting, and I'm displaying a chart for every row of the datasource of the report.
The chart displays a stacked bar chart type. I have a very similar issue like this post:
The difference is that I'm using a report to display the chart, and since I'm in the environment of the report the chart control have only 4 events in which the ItemDataBoundItem, the code I wrote seems to have no visual effect over the chart:
| Private Sub chtDefectsByFamily_ItemDataBound(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chtDefectsByFamily.ItemDataBound |
| Dim ChartItem As Telerik.Reporting.Processing.Chart = DirectCast(sender, Telerik.Reporting.Processing.Chart) |
| Dim ci As Telerik.Reporting.Chart = TryCast(ChartItem.ItemDefinition, Telerik.Reporting.Chart) |
| For Each seriesItem As Telerik.Reporting.Charting.ChartSeries In ci.Series |
| seriesItem.Appearance.LabelAppearance.LabelLocation = Charting.Styles.StyleSeriesItemLabel.ItemLabelLocation.Inside |
| seriesItem.Appearance.TextAppearance.TextProperties.Color = Color.White |
| For Each serieItem As Telerik.Reporting.Charting.ChartSeriesItem In seriesItem.Items |
| If serieItem.YValue = 0 Then |
| serieItem.Label.Visible = False |
| End If |
| serieItem.SetDirty() |
| Next |
| seriesItem.SetDirty() |
| Next |
| End Sub |
Is it possible to modify the chart during/after the binding of the data?? or is there any other way to hide the labels before the chart is shown?