Seems to me that the ClickSeries event does not fire correctly in HArea series - the event does not fire at all when the user click on the area region. It fires only when the user click on the "top" area region (View3D = true) or on the area line (View3D = false).
Jeff
ClickSeries does not fire correctly in HArea
-
- Newbie
- Posts: 8
- Joined: Wed Feb 06, 2008 12:00 am
- Location: Austria
- Contact:
Similar problem with line series
Hi Edu,
I am faced with a very similar problem. I'm using line style (DashDotDot) for my series with visible pointers. The TChart.ClickSeries event doesn't always fire when clicking on the line only. When I click on a pointer it fires but this is not sufficient because it could be that no pointer lies in the current visible area.
Thanks
Michael
I am faced with a very similar problem. I'm using line style (DashDotDot) for my series with visible pointers. The TChart.ClickSeries event doesn't always fire when clicking on the line only. When I click on a pointer it fires but this is not sufficient because it could be that no pointer lies in the current visible area.
Thanks
Michael
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Michael,
I'm not able to reproduce the issue here using code below with latest TeeChart for .NET v3 maintenance release.
Could you please modify it so that we can reproduce the problem here and let us know the exact steps we should follow and TeeChart version you are using?
Thanks in advance.
I'm not able to reproduce the issue here using code below with latest TeeChart for .NET v3 maintenance release.
Could you please modify it so that we can reproduce the problem here and let us know the exact steps we should follow and TeeChart version you are using?
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
line1.FillSampleValues();
line1.Pointer.Visible = true;
line1.LinePen.Style = System.Drawing.Drawing2D.DashStyle.DashDotDot;
line1.LinePen.Width = 3;
tChart1.ClickSeries += new TChart.SeriesEventHandler(tChart1_ClickSeries);
}
private Steema.TeeChart.Styles.Line line1;
void tChart1_ClickSeries(object sender, Steema.TeeChart.Styles.Series s, int valueIndex, MouseEventArgs e)
{
tChart1.Header.Text = line1.Clicked(e.X, e.Y).ToString();
}
Best Regards,
Narcís Calvet / 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 |
-
- Newbie
- Posts: 8
- Joined: Wed Feb 06, 2008 12:00 am
- Location: Austria
- Contact:
Hi Narcís,
first of all thanks for your quick reply!
Here is the code:
The adjustment of the min/max properties of the bottom axis does not work somehow but you can just zoom in so that the pointers of the line are outside the visible area.
The TeeChart Version we use is: TeeChart.Net 3.2.2945.19737.
Michael
first of all thanks for your quick reply!
Here is the code:
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
line1.Add(new DateTime(2008, 1, 1), 0);
line1.Add(new DateTime(2008, 12, 31), 100);
line1.Pointer.Visible = true;
line1.LinePen.Style = System.Drawing.Drawing2D.DashStyle.DashDotDot;
line1.LinePen.Width = 3;
tChart1.ClickSeries+=new TChart.SeriesEventHandler(tChart1_ClickSeries);
tChart1.Axes.Bottom.Minimum = DateTime.Now.ToOADate();
tChart1.Axes.Bottom.Maximum = DateTime.Now.AddHours(24).ToOADate();
}
private Steema.TeeChart.Styles.Line line1;
void tChart1_ClickSeries(object sender, Steema.TeeChart.Styles.Series s, int valueIndex, MouseEventArgs e)
{
tChart1.Header.Text = line1.Clicked(e.X, e.Y).ToString();
}
The TeeChart Version we use is: TeeChart.Net 3.2.2945.19737.
Michael
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Michael,
Thanks for the information. I could reproduce the issue here and added it (TF02013061) to the defect list to be fixed for future releases.
Axes min. and max. settings were not working as you should use commented code below or SetMinMax as being used in the example:
BTW: Also please notice there's a much newer release available at the client download area.
Thanks for the information. I could reproduce the issue here and added it (TF02013061) to the defect list to be fixed for future releases.
Axes min. and max. settings were not working as you should use commented code below or SetMinMax as being used in the example:
Code: Select all
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
line1.Add(new DateTime(2008, 1, 1), 0);
line1.Add(new DateTime(2008, 12, 31), 100);
line1.Pointer.Visible = true;
//line1.LinePen.Style = System.Drawing.Drawing2D.DashStyle.DashDotDot;
line1.LinePen.Width = 3;
tChart1.ClickSeries += new TChart.SeriesEventHandler(tChart1_ClickSeries);
tChart1.Axes.Bottom.SetMinMax(DateTime.Now.ToOADate(), DateTime.Now.AddHours(24).ToOADate());
//tChart1.Axes.Bottom.AutomaticMinimum = false;
//tChart1.Axes.Bottom.Minimum = DateTime.Now.ToOADate();
//tChart1.Axes.Bottom.AutomaticMaximum = false;
//tChart1.Axes.Bottom.Maximum = DateTime.Now.AddHours(24).ToOADate();
}
Best Regards,
Narcís Calvet / 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 |