ClickSeries does not fire correctly in HArea

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Jeff
Newbie
Newbie
Posts: 22
Joined: Thu Nov 30, 2006 12:00 am

ClickSeries does not fire correctly in HArea

Post by Jeff » Thu Apr 26, 2007 9:39 pm

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

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Fri Apr 27, 2007 2:09 pm

Hi Jeff

Thanks for letting this know, we could reproduce the issue here and this seems to be a bug. We've added it (TF02012191) to our defect list to be fixed for future releases.
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

Michael Breu
Newbie
Newbie
Posts: 8
Joined: Wed Feb 06, 2008 12:00 am
Location: Austria
Contact:

Similar problem with line series

Post by Michael Breu » Wed May 21, 2008 10:41 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed May 21, 2008 12:23 pm

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?

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();
		}
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Michael Breu
Newbie
Newbie
Posts: 8
Joined: Wed Feb 06, 2008 12:00 am
Location: Austria
Contact:

Post by Michael Breu » Wed May 21, 2008 1:49 pm

Hi Narcís,

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 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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed May 21, 2008 2:02 pm

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:

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();
		}
BTW: Also please notice there's a much newer release available at the client download area.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply