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.
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.
ScrollPager Zoom Panel Location.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: ScrollPager Zoom Panel Location.
Hello,
I'm not sure of the requirement here - clicking and dragging on the panel easily changes its position, right?amol wrote:1. Change the panel positon from right to left.
Which code are you using to update the series?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.
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 |
Re: ScrollPager Zoom Panel Location.
Update Subchart Series from below Code,
ScrollPagertool.SubChartTChart.Series.Clear();
ScrollPagertool.Series = line;
ScrollPagertool.SubChartTChart.Series.Clear();
ScrollPagertool.Series = line;
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: ScrollPager Zoom Panel Location.
Hello,
Okay, in which case you can try:amol wrote: ScrollPagertool.SubChartTChart.Series.Clear();
ScrollPagertool.Series = line;
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 |
Re: ScrollPager Zoom Panel Location.
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.
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.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: ScrollPager Zoom Panel Location.
Hello,
Again, a simple example project demonstrating this issue is necessary for us to reproduce it here. Thank you for your cooperation with Steema Support!amol wrote: but when we add more than 10 points in tcahrt1 series at runtime, Application work slow...
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 |
Re: ScrollPager Zoom Panel Location.
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.
But we have one more query given as below,
1. We want open full ScrollPager Zoom Panel in chart when first time chart open.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: ScrollPager Zoom Panel Location.
Hello,
You can try:amol wrote:1. We want open full ScrollPager Zoom Panel in chart when first time chart open.
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 |