Help on how to do a combined datasource XY-plot...
Posted: Thu Jun 21, 2007 1:16 pm
Hi,
I need to use two (and later on several) datasources for a combined XY plot (Steema.TeeChart.Styles.Points I assume) such that the first datasource is treated as the X' axis specifier and the second datasource as the Y' axis.
Both datasources contain a number of points (x,y) - lets call these (x1,y1) and (x2,y2). The desired chart should correlate the datasources such that all outputted points are the X' and Y' axis coordinates (y1, y2) where x1=x2. If either datasource have a point that do not "align" with the other datasource no resulting point will emerge (x1 != x2) from it, but of course all aligning points (x1=x2) will.
I have been unable to find any examples in the provided .NET tutorial files or any clues in the forums on how to accomplish this.
Below is an example of my charting needs.
Datasource 1 contains these values - this is treated as X:
X: 1 2 3 4 5 6
Y: 1 4 8 4 2 0
Datasource 2 contains these values - this is treated as Y:
X: 1 2 3 4 5 6
Y: 6 7 2 8 9 3
Now, what I want is to output a Point chart with these point coordinates in a single series, which is combined from datasource 1 and 2:
X' axis values: 0 to 8 (span of Y in datasource 1)
Y' axis values: 2 to 9 (span of Y in datasource 2)
Points to plot (combined):
X', Y':
( 1,6 ), ( 4,7 ), ( 8,2 ), ( 4,8 ), ( 2,9 ), ( 0,3 ) .
I hope the above description is clear enough, otherwise do let me know and I'll try to clarify it.
Best Regards
Michael Schøler
IT consultant
Vestas A/S, Denmark
www.vestas.com
I need to use two (and later on several) datasources for a combined XY plot (Steema.TeeChart.Styles.Points I assume) such that the first datasource is treated as the X' axis specifier and the second datasource as the Y' axis.
Both datasources contain a number of points (x,y) - lets call these (x1,y1) and (x2,y2). The desired chart should correlate the datasources such that all outputted points are the X' and Y' axis coordinates (y1, y2) where x1=x2. If either datasource have a point that do not "align" with the other datasource no resulting point will emerge (x1 != x2) from it, but of course all aligning points (x1=x2) will.
I have been unable to find any examples in the provided .NET tutorial files or any clues in the forums on how to accomplish this.
Below is an example of my charting needs.
Datasource 1 contains these values - this is treated as X:
X: 1 2 3 4 5 6
Y: 1 4 8 4 2 0
Datasource 2 contains these values - this is treated as Y:
X: 1 2 3 4 5 6
Y: 6 7 2 8 9 3
Now, what I want is to output a Point chart with these point coordinates in a single series, which is combined from datasource 1 and 2:
X' axis values: 0 to 8 (span of Y in datasource 1)
Y' axis values: 2 to 9 (span of Y in datasource 2)
Points to plot (combined):
X', Y':
( 1,6 ), ( 4,7 ), ( 8,2 ), ( 4,8 ), ( 2,9 ), ( 0,3 ) .
I hope the above description is clear enough, otherwise do let me know and I'll try to clarify it.
Best Regards
Michael Schøler
IT consultant
Vestas A/S, Denmark
www.vestas.com