Events on WebCharts don't work

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
else
Newbie
Newbie
Posts: 17
Joined: Fri May 21, 2004 4:00 am
Location: Germany
Contact:

Events on WebCharts don't work

Post by else » Wed Jun 29, 2005 12:36 pm

Hello!
I wrote a test-project, to test the events on a webchart, because I want to zoom on this chart. At the first time non of the events, except the Click-Background-event, was firered. One day later, I tested it again, all the events worked although there were NO changes on the code.
Also the functions to calculate the the coordinates of the rectangle for zooming have correct values. One day before they returned wrong values.

Now I want to work with the events on our project. The affected site contains two webcharts. At first not even the Click-Background-event is firered, also none of the other events.
After a while, only the Click-Background-event worked. Furthermore the funktions to calculate the coordinates return values, f. e. the position of the max. value on the y-axis ist the same as the position of the min. value. So the height of my rectangle is zero! But I have the same settings and the same order in my code like in my test-project!

Is there a trick, to wakeup WebCharts for catching events on it? I hope you can help me!
Thank you!

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 Jun 29, 2005 1:35 pm

Hi Else,

The problem might be, in WebForms, you need to assign events manually as shown here:

Code: Select all

(WebChart1.Chart.Tools[0] as Steema.TeeChart.Tools.SeriesHotspot).GetHTMLMap += new Steema.TeeChart.Tools.SeriesHotspotEventHandler(this.seriesHotspot1_GetHTMLMap);
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

else
Newbie
Newbie
Posts: 17
Joined: Fri May 21, 2004 4:00 am
Location: Germany
Contact:

Post by else » Thu Jun 30, 2005 9:24 am

Hi Narcis!
Now I use the same Click-Background-event for my two webcharts and although the event is firered, the function which is called, is not correctly achieved. In this function I initialisize the series of the two charts and fill them with values. If I click on webchart1, only this clicked chart is initialisized. If I click on webchart2, both of the charts show their series with the values. It's the same, I use one event for each chart.
Also the calculated coordinates still return wrong values. For this I use
"CalcYPosValue" and "CalcXPosValue".
PS.: I cannot find "SeriesHotspot" in this namespace. Do I have to add a reference?
With friendly greedings!

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

Post by Narcís » Thu Jun 30, 2005 11:44 am

Hi else,

Would you be so kind to send us an example we can run "as-is" to reproduce the problem here? You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.
PS.: I cannot find "SeriesHotspot" in this namespace. Do I have to add a reference?
You should find it at Steema.TeeChart.Tools.SeriesHotspot as you can see in the code I posted before.
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

else
Newbie
Newbie
Posts: 17
Joined: Fri May 21, 2004 4:00 am
Location: Germany
Contact:

Post by else » Wed Jul 13, 2005 8:28 am

Hi Narcis!
Sorry, I did not recognize, that there's a newer version of TeeCharts. Since I have the V2, the zoom works!
But now, I have the problem, that there are several of this Charts on my site and when the programm is running they are lying upon each other. In the developers-environment I give them the desired position! Did I forget something? :?:
Best regards!

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

Post by Narcís » Fri Jul 15, 2005 12:09 pm

Hi else,

Yes you are right. I've been able to reproduce it here. At the beginning of the next week we are going to put a test debug build, as announced here, with a fix for this. The fix will also be included in the next maintenance release which we expect to by the last week of July.
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

else
Newbie
Newbie
Posts: 17
Joined: Fri May 21, 2004 4:00 am
Location: Germany
Contact:

Post by else » Mon Jul 18, 2005 6:54 am

Hi Narcis, thank you!
Actually I solved the problem in the developer-environment. I locked the the element :idea: . But I don't know, if there are consequences.
Best regards,
else

else
Newbie
Newbie
Posts: 17
Joined: Fri May 21, 2004 4:00 am
Location: Germany
Contact:

Post by else » Tue Jul 19, 2005 11:56 am

Ok, it's not THE SOLUTION, because the zoom-rectangle still stays at the position, where the WebChart appeares, if it's not locked.... :? !
Chart-zooming is only possible, if you can catch a piece of your chart with the rectangle...
Best regards,
else

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

Post by Narcís » Tue Jul 19, 2005 12:12 pm

Hi else,

The interim build I told you is expected to be ready tomorrow.
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

else
Newbie
Newbie
Posts: 17
Joined: Fri May 21, 2004 4:00 am
Location: Germany
Contact:

Post by else » Thu Jul 21, 2005 9:25 am

Hi Narcis,
I recognized another problem :oops: .
I tested the new interim build and the charts stayed at their position although they are unlocked :wink: .
On our websites, we have to scroll down to have a full view on the WebCharts. If I want to zoom before scrolling, the rectangle is situated ON the chart. After scrolling, the zoom-rectangle is situated ABOVE the chart. Is there also a way, to fix it on the chart?
My impression is, that the rectangle is contitioned by the mouse- coordinates on the screen after the page-load event (unscrolled position). But it's only possible to zoom, if you can catch a piece of the WebChart with the rectangle! Then only the catched piece is zoomed (Zoom is fixed to the chart, but not the rectangle).

Best Regards,

else

Marc
Site Admin
Site Admin
Posts: 1266
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Thu Jul 21, 2005 10:04 am

Hello else,

Thanks for letting us know. We'll run some tests to see what the cause might be.

Regards,
Marc Meumann
Steema Support

Marc
Site Admin
Site Admin
Posts: 1266
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Fri Jul 22, 2005 2:57 pm

Hello else,

Thanks for the useful feedback. We've added a modification to compensate for the offset of a scrolled page and added a few other improvements to support zoom on multiple WebCharts on a page.

The modifications will be included in the next maintenance release scheduled for availability late next week.

Regards,
Marc Meumann
Steema Support

else
Newbie
Newbie
Posts: 17
Joined: Fri May 21, 2004 4:00 am
Location: Germany
Contact:

Post by else » Mon Aug 22, 2005 8:25 am

Hi Steema-team!

Thank you for the friendly support! It works fine :D !

Best regards,
else

Post Reply