ScrollPager Zoom Panel Location.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

ScrollPager Zoom Panel Location.

Post by amol » Mon Aug 31, 2015 1:24 pm

Hi steema ,

We have using ScrollPager Tool and we have some issue regarding Zoom Panel location.

1. Change the panel positon from right to left.
t1.png
Fig 1
t1.png (38.61 KiB) Viewed 14452 times
2. Add a point in Tchart and Upadate Subchart series. But zoom Panel location is Change.When we add a point on Tchart series , we want to not change Panel Location.
t2.png
Fig 2
t2.png (45.77 KiB) Viewed 14449 times

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: ScrollPager Zoom Panel Location.

Post by Christopher » Mon Aug 31, 2015 1:41 pm

Hello,
amol wrote:1. Change the panel positon from right to left.
I'm not sure of the requirement here - clicking and dragging on the panel easily changes its position, right?
amol wrote:2. Add a point in Tchart and Upadate Subchart series. But zoom Panel location is Change.When we add a point on Tchart series , we want to not change Panel Location.
Which code are you using to update the series?
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Re: ScrollPager Zoom Panel Location.

Post by amol » Tue Sep 01, 2015 4:30 am

Update Subchart Series from below Code,

ScrollPagertool.SubChartTChart.Series.Clear();
ScrollPagertool.Series = line;

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: ScrollPager Zoom Panel Location.

Post by Christopher » Tue Sep 01, 2015 9:28 am

Hello,
amol wrote: ScrollPagertool.SubChartTChart.Series.Clear();
ScrollPagertool.Series = line;
Okay, in which case you can try:

Code: Select all

    private void button4_Click(object sender, EventArgs e)
    {
      double min = tChart1.Axes.Bottom.Minimum;
      double max = tChart1.Axes.Bottom.Maximum;
      double start = tool.ColorBandTool.Start;
      double end = tool.ColorBandTool.End;

      series.Add(150, 10);
      tool.SubChartTChart.Series.Clear();
      tool.Series = series;

      tChart1.Axes.Bottom.Minimum = min;
      tChart1.Axes.Bottom.Maximum = max;
      tool.ColorBandTool.Start = start;
      tool.ColorBandTool.End = end;
    }
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Re: ScrollPager Zoom Panel Location.

Post by amol » Tue Sep 01, 2015 11:06 am

Thanks for reply,

but when we add more than 10 points in tcahrt1 series at runtime, Application work slow...

For Add Point in series Code is given as below,

Line.Add(AddPointXLocation, AddPointYLocation);

double min = tChart1.Axes.Bottom.Minimum;
double max = tChart1.Axes.Bottom.Maximum;

double start = ScrollPagertool.ColorBandTool.Start;
double end = ScrollPagertool.ColorBandTool.End;

ScrollPagertool.SubChartTChart.Series.Clear();
ScrollPagertool.Series = Line;

tChart1.Axes.Bottom.Minimum = min;
tChart1.Axes.Bottom.Maximum = max;

ScrollPagertool.ColorBandTool.Start = start;
ScrollPagertool.ColorBandTool.End = end;

Where AddPointXLocation & AddPointYLocation are double type variables.In which fill the value at TChart1 mouse Down. X,Y Location of Mouse.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: ScrollPager Zoom Panel Location.

Post by Christopher » Tue Sep 01, 2015 11:14 am

Hello,
amol wrote: but when we add more than 10 points in tcahrt1 series at runtime, Application work slow...
Again, a simple example project demonstrating this issue is necessary for us to reproduce it here. Thank you for your cooperation with Steema Support!
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Re: ScrollPager Zoom Panel Location.

Post by amol » Thu Sep 03, 2015 11:52 am

Thanks for Reply,

But we have one more query given as below,

1. We want open full ScrollPager Zoom Panel in chart when first time chart open.
Zoom Panel.png
Zoom Panel.png (49.51 KiB) Viewed 14398 times

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: ScrollPager Zoom Panel Location.

Post by Christopher » Thu Sep 03, 2015 12:56 pm

Hello,
amol wrote:1. We want open full ScrollPager Zoom Panel in chart when first time chart open.
You can try:

Code: Select all

    Line series1;
    ScrollPager tool;
    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;
      series1 = new Line(tChart1.Chart);
      series1.FillSampleValues(200);

      tool = new ScrollPager(tChart1.Chart);
      tool.Series = series1;

      tChart1.Draw();

      tChart1.Axes.Bottom.Minimum = series1.XValues.Minimum + 1;
      tChart1.Axes.Bottom.Maximum = series1.XValues.Maximum - 1;
    }
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply