Hi
I'm trying to highlight a legend item if the user clicks on the series, and highlight a series if the userclicks on the legend item it belongs too.
Is there some way I can do this? I'm unable to find the legend items added by default.
I cant find those two events, am I maybe missing a hotfix or something? am using Infragistics3.WPF.Chart.v7.2
you can do this by handling the ChartDrawItem and ChartDataClicked events, as in this sample code
public partial class Form1 : Form
{
InitializeComponent();
}
this.ultraChart1.Legend.Visible = true;
this.ultraChart1.ColorModel.Skin.PEs.Add(new PaintElement(Color.Red));
this.ultraChart1.ColorModel.Skin.PEs.Add(new PaintElement(Color.Blue));
this.ultraChart1.Data.DataSource = Infragistics.UltraChart.Data.DemoTable.Table();