Page 1 of 1

ScrollPager Zoom Panel Location.

Posted: Mon Aug 31, 2015 1:24 pm
by 9526439
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 14444 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 14441 times

Re: ScrollPager Zoom Panel Location.

Posted: Mon Aug 31, 2015 1:41 pm
by Christopher
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?

Re: ScrollPager Zoom Panel Location.

Posted: Tue Sep 01, 2015 4:30 am
by 9526439
Update Subchart Series from below Code,

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

Re: ScrollPager Zoom Panel Location.

Posted: Tue Sep 01, 2015 9:28 am
by Christopher
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;
    }

Re: ScrollPager Zoom Panel Location.

Posted: Tue Sep 01, 2015 11:06 am
by 9526439
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.

Re: ScrollPager Zoom Panel Location.

Posted: Tue Sep 01, 2015 11:14 am
by Christopher
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!

Re: ScrollPager Zoom Panel Location.

Posted: Thu Sep 03, 2015 11:52 am
by 9526439
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 14390 times

Re: ScrollPager Zoom Panel Location.

Posted: Thu Sep 03, 2015 12:56 pm
by Christopher
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;
    }