Page 1 of 1
Events on WebCharts don't work
Posted: Wed Jun 29, 2005 12:36 pm
by 8125571
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!
Posted: Wed Jun 29, 2005 1:35 pm
by narcis
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);
Posted: Thu Jun 30, 2005 9:24 am
by 8125571
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!
Posted: Thu Jun 30, 2005 11:44 am
by narcis
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.
Posted: Wed Jul 13, 2005 8:28 am
by 8125571
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!
Posted: Fri Jul 15, 2005 12:09 pm
by narcis
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.
Posted: Mon Jul 18, 2005 6:54 am
by 8125571
Hi Narcis, thank you!
Actually I solved the problem in the developer-environment. I locked the the element
. But I don't know, if there are consequences.
Best regards,
else
Posted: Tue Jul 19, 2005 11:56 am
by 8125571
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
Posted: Tue Jul 19, 2005 12:12 pm
by narcis
Hi else,
The interim build I told you is expected to be ready tomorrow.
Posted: Thu Jul 21, 2005 9:25 am
by 8125571
Hi Narcis,
I recognized another problem
.
I tested the new interim build and the charts stayed at their position although they are unlocked
.
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
Posted: Thu Jul 21, 2005 10:04 am
by Marc
Hello else,
Thanks for letting us know. We'll run some tests to see what the cause might be.
Regards,
Marc Meumann
Posted: Fri Jul 22, 2005 2:57 pm
by Marc
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
Posted: Mon Aug 22, 2005 8:25 am
by 8125571
Hi Steema-team!
Thank you for the friendly support! It works fine
!
Best regards,
else