Adding Scrollbar to a WebChart
Posted: 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
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