Adding Scrollbar to a WebChart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
MeirS
Newbie
Newbie
Posts: 14
Joined: Thu Jan 25, 2007 12:00 am

Adding Scrollbar to a WebChart

Post by MeirS » Wed Jun 27, 2007 9:45 am

Hi,

I have WebChart with 6 series each one on a custom axis
I need to supply the following functionality:

1. A vertical scrollbar, so that the graph will display 3 series at a time
I added a scrollbar tool code to the chart but it did not show.

//Add a ScrollBar to the Chart
ScrollBar scrollBar = new ScrollBar(ch1);
scrollBar.Active = true;
scrollBar.Horizontal = false;
scrollBar.DrawStyle = ScrollBarDrawStyle.Always;
scrollBar.Size = 100;
scrollBar.Position = 10;

I do not know how to position each custom axsis so that only 3 series will show at a time,
and the scroll bar will alow me to scroll for the other series.

2.For every axis I want to show on the right (right axis of the graph)
the minimum and maximum axis values with ticks for the minimum and the maximum
I also need to add text between the minimum and maximum values
i.e. for V1 I want 473 for maximum, -473 for minimum and "kVolts" for the text

3. I need to do some custom drawing on the graph such as drawing a circle.
I know I can do it in the OnAfterDraw event of the page, but I would like to do it when creating the graph originally
Is it at all possible?

I can not post my files at news://www.steema.net/steema.public.attachments,
so if needed please supply me with an e-mail address so that I'll send you a working example

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

Post by Edu » Wed Jun 27, 2007 11:10 am

Hi MeirS

The ScrollBar doesn't work in webforms, it's only by windowsForms. The version 3 has got the scrolltool to do it.
2.For every axis I want to show on the right (right axis of the graph)
the minimum and maximum axis values with ticks for the minimum and the maximum
I also need to add text between the minimum and maximum values
i.e. for V1 I want 473 for maximum, -473 for minimum and "kVolts" for the text
You can use custom labels to do it, you can see an example in "Welcome !\Axes\Labels\Custom" at the features demo. You'll find the demo at TeeChart's program group. Also can be intersting for you read "Tutorial 4 - Axis Control".

3. I need to do some custom drawing on the graph such as drawing a circle.
I know I can do it in the OnAfterDraw event of the page, but I would like to do it when creating the graph originally
Is it at all possible?
You can use the "WebChart1_BeforeDraw" event.
I can not post my files at news://www.steema.net/steema.public.attachments,
so if needed please supply me with an e-mail address so that I'll send you a working example
Also you can post your files at our upload page
Best Regards,
Edu

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

Post Reply