Hi,
Is it possible to use the ClickAxis event on a chart (Line and CircularGauge) in WPF?
If yes, can you provide me an exemple?
Thanks,
Antoine.
ClickAxis in WPF
Re: ClickAxis in WPF
I've managed to do it with the Line using this:
but it does not work with the CircularGauge.
Code: Select all
this.tc_Chart.ClickAxis +=new MouseEventHandler(tc_Chart_ClickAxis);
//...
private void tc_Chart_ClickAxis(object sender, MouseEventArgs e)
{
Console.WriteLine(e.ToString());
}
Re: ClickAxis in WPF
Hello Antonie,
I am afraid that it is not possible use ClickAxies in CircularGauge, so Axis of CircularGauge is not visible, therefore no accessible and do ClicAxis Event, loses meaning when you use CircularGauge.
Thanks,
I am afraid that it is not possible use ClickAxies in CircularGauge, so Axis of CircularGauge is not visible, therefore no accessible and do ClicAxis Event, loses meaning when you use CircularGauge.
Thanks,
Best Regards,
Sandra Pazos / 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: ClickAxis in WPF
Ok. To by-pass this limitation I have tried to used the ClickSeries of the TChart component and the Click of the CircularGauge without any success.
Which type of Event should I use to achieve my goal?
Thanks.
Code: Select all
public void InitTeeChart()
{
CircularGauge gauge = new CircularGauge();
gauge.Click +=new MouseEventHandler(gauge_Click);
tc_Chart.ClickSeries+=new TChart.SeriesEventHandler(tc_Chart_ClickSeries);
this.tc_Chart.Series.Clear();
this.tc_Chart.Series.Add(gauge);
}
private void tc_Chart_ClickSeries(Object sender, Series s, Int32 valueIndex, MouseEventArgs e)
{
Console.WriteLine("tc_Chart_ClickSeries: " +e.ToString());
}
private void gauge_Click(object sender, MouseEventArgs e)
{
Console.WriteLine("gauge_Click: " + e.ToString());
}
Thanks.
Re: ClickAxis in WPF
Hello antoine,
You are right. I have added your request in bug list report with number [TF02015685]. We will try to fix it in next maintenance releases of TeeChart.Net.
Thanks,
You are right. I have added your request in bug list report with number [TF02015685]. We will try to fix it in next maintenance releases of TeeChart.Net.
Thanks,
Best Regards,
Sandra Pazos / 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 |