Page 1 of 1

HotSpots /ToolTips for fastline series

Posted: Tue Oct 09, 2007 12:48 pm
by 9644416
Hello, I need to add tooltips to show the values of a series whenever mouse is rolled over the series.
I have aproximately 10 to 15 series with 1200 points each, the page works perfectly if I do not try to add the hotspots, but the page freezes or becomes unstable as soon as I do so...

Do you know what can I do?
Is there a new release that covers this bug??

Posted: Tue Oct 09, 2007 1:50 pm
by narcis
Hi tenaris,

Please notice that today we posted a new v2 update build and last week a new v3 maintenance release was posted as well. Are you using latest TeeChart version available?

If so, could you please send us a simple example project we can run "as-is" to reproduce the problem here? You can post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance!

Posted: Tue Oct 09, 2007 2:00 pm
by 9644416
In the page for downloads says clearly "TeeChart for .NET v3 RC is not intended for production use. The version expires on 23rd Sept 2007."

So I am using v2 update build.
I am filling our charts with info from our DB and our Servers, you won't have access to those, so the web application won't run anyways...

is there another way you can help me?

Posted: Tue Oct 09, 2007 2:09 pm
by narcis
Hi tenaris,
In the page for downloads says clearly "TeeChart for .NET v3 RC is not intended for production use. The version expires on 23rd Sept 2007."
This was intended for v2 users to be able to evaluate v3. If you are interested in v3 you can also download the evaluation version at http://www.steema.com/downloads/form_tch_net.html and when it expires upgrade your v2 license to v3.

It would be very helpful if you could arrange a simple example project we can run "as-is" with random data and using v2 update build posted today so that we can reproduce the problem here. Otherwise it will be very difficult for us identifying the problem.

Thanks in advance.

Posted: Tue Oct 09, 2007 7:48 pm
by 9644416
Hi Narcis,
I have uploaded through the upload page PruebaTeechart.rar which reproduces my problem.

Even when I add only 3 series the control starts missfunctioning.
I would really appreciate if you could help me.

I will be probably working with more than ten series at the same time.
Thanks for your time.

Posted: Wed Oct 10, 2007 11:11 am
by narcis
Hi tenaris,

Thanks for the example project. I've been able to reproduce the problem here. I've also seen this was reported in he past and a workaround was suggested here.

Posted: Wed Oct 10, 2007 12:13 pm
by 9644416
Sorry to bother you again with this matter, I've been through the workaround you suggested, but I would find it very helpfull if you could upload an example code that shows how to work with:

if(index % 50 == 0) { return base.GetBounds(index);}

Thanks again!

Posted: Wed Oct 10, 2007 1:33 pm
by narcis
Hi tenaris,

Ok, instead of using FastLine series you can create your own series adding the class above to your project:

Code: Select all

public class MyFastLine : Steema.TeeChart.Styles.FastLine
{
	public MyFastLine(Steema.TeeChart.Chart c)
		: base(c)
	{
	}

	protected override int[] GetBounds(int index, ref Steema.TeeChart.Styles.PolygonStyle p)
	{
		if (index % 50 == 0)
		{
			return base.GetBounds(index, ref p);	
		}
		else
		{
			return null;
		}
	}
}
So you can declare your series like this:

Code: Select all

				MyFastLine Fastline1 = new MyFastLine(ch1);
				MyFastLine Fastline2 = new MyFastLine(ch1);
				MyFastLine Fastline3 = new MyFastLine(ch1);
				MyFastLine Fastline4 = new MyFastLine(ch1);
				MyFastLine Fastline5 = new MyFastLine(ch1);
				MyFastLine Fastline6 = new MyFastLine(ch1);
				MyFastLine Fastline7 = new MyFastLine(ch1);
				MyFastLine Fastline8 = new MyFastLine(ch1);
I've tested your project using MyFastLine series and worked fine. Even with 5000 points the application didn't hang. If with more points the application still hangs you can try increasing the frequency of hints drawn in the overriden GetBounds method.

Hope this helps!

Posted: Wed Oct 10, 2007 1:52 pm
by 9644416
Thanks a lot!!

That solves my problem for now!

Posted: Wed Oct 10, 2007 1:56 pm
by narcis
Hi tenaris,

You're very welcome! I'm glad to hear that worked fine at your end.