Hi steema support,
We are facing an issue regarding multiple legends,
Why checkbox of legend 2 is not working independently?
We wants to work on checkbox of legend 2.
Please provide me any solution asap.
Thanks in advance.
Multiple Legends
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Multiple Legends
I'm not sure what you are trying to achieve with more than one legend, but I think you might like to consider use of the ExtraLegend tool, e.g.amol wrote:We are facing an issue regarding multiple legends,
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Multiple Legends
Hi steema,
Thanks for your prompt reply.
As you suggested we have gone through with the ExtraLegend tool, but here also we are unable to check/uncheck the series that is showing in the tool.
Basically our need is to check/uncheck checkboxes of the legend 2.
Is there is any other way to create Custom legend?
Thanks & Regards
PlanoResearch
Thanks for your prompt reply.
As you suggested we have gone through with the ExtraLegend tool, but here also we are unable to check/uncheck the series that is showing in the tool.
Basically our need is to check/uncheck checkboxes of the legend 2.
Is there is any other way to create Custom legend?
Thanks & Regards
PlanoResearch
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Multiple Legends
This requires a little extra code, e.g.amol wrote: Basically our need is to check/uncheck checkboxes of the legend 2.
Code: Select all
ExtraLegend legend;
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
Line series1 = new Line(tChart1.Chart);
Line series2 = new Line(tChart1.Chart);
series1.FillSampleValues();
series2.FillSampleValues();
tChart1.Legend.CheckBoxes = true;
legend = new ExtraLegend(tChart1.Chart);
legend.Series = series2;
legend.Legend.LegendStyle = LegendStyles.Series;
legend.Legend.CheckBoxes = true;
tChart1.MouseDown += TChart1_MouseDown;
}
private void TChart1_MouseDown(object sender, MouseEventArgs e)
{
int index = legend.Legend.Clicked(e.X, e.Y);
if (index != -1)
{
Series s = tChart1.Chart.SeriesLegend(index, false);
s.Active = !s.Active;
}
}
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |