I would like to know how do I specify legend item text at runtime. When I bind a data object to a chart, it automatically binds the wrong data to the legend. I would like to have control over this.
1 Answer, 1 is accepted
0
Chavdar
Telerik team
answered on 12 Jul 2007, 02:52 PM
Hi drodriguez,
To add a custom legend item you can use the following code snippet:
Dim customLegendItem As Telerik.Charting.LabelItem
customLegendItem = New Telerik.Charting.LabelItem()
customLegendItem.TextBlock.Appearance.TextProperties.Font = New Font("Arial", 8)