Page 1 of 1

How to include three graphs in one chart

Posted: Thu Jun 22, 2006 5:50 pm
by 9640386
I'm trying to TChart a chart with three scatter plots each with a seperate x-axis and sharing the same y-axis. In this case, soil moisture, temperature and light all plotted against time. So far, I haven't found an example in the turtorials which does this.

Here is a mock-up of what I want to do..

Image

cheers, Paul

Posted: Fri Jun 23, 2006 7:58 am
by narcis
Hi Paul,

This can be easily achieved usinc custom axes. For examples on how to achieve that please have a look at the following examples in the TeeChart features demo:
  • All Features\Welcome !\Axes\Opaque zones
    All Features\Welcome !\Axes\Permanent custom axes
    All Features\Welcome !\Axes\Scrolling multiple axes
It can also be helpful having a look at Tutorial4 - Axis Control for more information how to work with default and custom axes. You'll find the tutorials and features demo at TeeChart's program group.

Posted: Fri Jun 30, 2006 6:55 pm
by 9641603
Hi,

The problem with this trick is that it's quite unintuitive and, unfortunately, bug-ridden. Example: scrolling and zooming plots with multiple custom axes. Just try it with the "Scrolling multiple axes" example:
- zoom in on the plot
- scroll the view by dragging it with the right mouse button
- revert to original axis scale by dragging with the left mouse button towards top-left
You'll see that the plot goes crazy.

Another problem is that if you want to have separate grids for each axis, the grids will cover the entire plot area whoch makes them completely useless. You cans see this in the "Permanent custom axes" example.

I think that the lack of easy to use, scalable and independent subcharts is one of the most important missing features of TeeChart.

Best,
Michal Blazejczyk

Posted: Mon Jul 03, 2006 7:22 am
by narcis
Hi Michal,
The problem with this trick is that it's quite unintuitive and, unfortunately, bug-ridden. Example: scrolling and zooming plots with multiple custom axes. Just try it with the "Scrolling multiple axes" example:
- zoom in on the plot
- scroll the view by dragging it with the right mouse button
- revert to original axis scale by dragging with the left mouse button towards top-left
You'll see that the plot goes crazy.
I can't reproduce this problem here using TeeChart for .NET v2 latest maintenance release. Can you please be more specific on what you mean with "the plot goes crazy"?
Another problem is that if you want to have separate grids for each axis, the grids will cover the entire plot area whoch makes them completely useless. You cans see this in the "Permanent custom axes" example.
This is a known issue already listed on our wish-list to be enhanced for future releases.

Posted: Mon Jul 03, 2006 2:32 pm
by 9641603
I can't reproduce this problem here using TeeChart for .NET v2 latest maintenance release. Can you please be more specific on what you mean with "the plot goes crazy"?
Try zooming in in the middle of the chart and then scrolling down so that you see only the blue lines. Then reset the zoom. You should get something like this:

Image

Posted: Mon Jul 03, 2006 3:00 pm
by narcis
Hi Michal,

Thanks for the information. Now I could reproduce the issue and added it (TF02011539) to our defect list to be fixed for future releases.