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.
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();
I cant find those two events, am I maybe missing a hotfix or something? am using Infragistics3.WPF.Chart.v7.2
oops! i got confused and thought i was in the ASP.NET or WinForms newsgroups. unfortunately, we don't have a solution for this yet on the WPF side of things.
if you'd like to see this capability in a future release, please submit a feature request here: http://devcenter.infragistics.com/protected/requestfeature.aspx
we have not yet added this feature to the WPF XamChart or XamDataChart.
David,
Just wondering if this request for an interactive legend ever made it into the WPF Suite. Thanks.
nlvraghavendra,
let's discuss that in this thread: http://community.infragistics.com/forums/p/41045/228961.aspx#228961
Your code works fine for me. But i want to hide all other lines when a legend is clicked. If the chart is clicked again all the lines should reappear. How to do it?
Thank you