When using Waterfall series I would like to be able to zoom the graph.
One possible way for us to do this is to change the scale of the bottom axis. The problem is then that the curves goes through the wall.
Do you have any suggestion how this can be avoided or any other option for zooming Waterfall graphs.
Thanks in advance!
Zooming waterfall
Hi Janne!
We are not sure to understand which is your exact problem but we don't see anyting strange zooming a WaterFall chart using TeeChart's standard zooming features described in Tutorial 11 - Zoom and Scroll. You'll find tutorials at TeeChart's program group.
Could you please send us a simple example project we can run "as-is" to reproduce the problem here or an image of the problem and let us know the exact TeeChart version you are using?
You can post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Best Regards
Sandra
Steema Support Central
http://support.steema.com
We are not sure to understand which is your exact problem but we don't see anyting strange zooming a WaterFall chart using TeeChart's standard zooming features described in Tutorial 11 - Zoom and Scroll. You'll find tutorials at TeeChart's program group.
Could you please send us a simple example project we can run "as-is" to reproduce the problem here or an image of the problem and let us know the exact TeeChart version you are using?
You can post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Best Regards
Sandra
Steema Support Central
http://support.steema.com
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Janne,
Thanks for your file.
In the code snippet you obtain a chart similar to yours. Button's code show how to some setting bottom axis scale or using ZoomPercent. None of those options plots the series behind the walls for me.
Thanks for your file.
Yes, that's by design. Zoom is only supported in the ChartRect area. Zooming as you request is not supported.Question 1
In the below picture the zoom only works in the red marked area. I would like to be able to zoom in the whole Teechart. For instance I want to zoom the blue rectangle.
I don’t think normal zoom feature allows this, or am I wrong?
This doesn't happen here using latest TeeChart for .NET v3 release available at the client area. Which TeeChart version are you using?Question 2
We have seen that one way of fixing the problem for us is to change the scale on the bottom axis. But the plot is then visible through the wall (same picture above). Is it possible to stop teechart from showing the part of the curve that in fact are “behind” the wall?
In the code snippet you obtain a chart similar to yours. Button's code show how to some setting bottom axis scale or using ZoomPercent. None of those options plots the series behind the walls for me.
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
void InitializeChart()
{
Steema.TeeChart.Styles.Waterfall waterFall1 = new Steema.TeeChart.Styles.Waterfall(tChart1.Chart);
tChart1.Aspect.Chart3DPercent = 100;
tChart1.Legend.Visible = false;
Random y = new Random();
for (int x = 0; x < 100; x++)
{
for (int z = 0; z < 5; z++)
{
waterFall1.Add(x, y.Next() , z*10);
}
}
}
private void button1_Click(object sender, EventArgs e)
{
tChart1.Zoom.ZoomPercent(110);
//tChart1.Axes.Bottom.AutomaticMinimum = false;
//tChart1.Axes.Bottom.AutomaticMaximum = false;
//double range = tChart1.Axes.Bottom.Maximum - tChart1.Axes.Bottom.Minimum;
//tChart1.Axes.Bottom.Minimum += range * 0.1;
//tChart1.Axes.Bottom.Maximum -= range * 0.1;
}
private void button2_Click(object sender, EventArgs e)
{
tChart1.Zoom.ZoomPercent(90);
//tChart1.Axes.Bottom.AutomaticMinimum = true;
//tChart1.Axes.Bottom.AutomaticMaximum = true;
}
Best Regards,
Narcís Calvet / 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 |