I am trying to plot a series of regions ("passes") that represent a polygon. All regions are defined by a set of X and Y data that define their border. Each polygon region is a continuum...i.e. although on polygon one there is a y-value of 0 at x=8.0 and a y-value of 0.35 at x=7.25, it is assumed that this defines a sloping edge to the polygon.
This would not be a problem to plot (using a line chart, for example), except that I need the polygons to be "stacked". A stacked area chart gives an idea of what I need--however, an area chart does not have the capability for a numeric X-axis. I show 2 polygons here, but the spreadsheet has the capability of producing up to 8 polygons. Each one may have up to 40 "points" that define its shape.
End result would be a series of shaded (filled) areas that show. Chart would be fixed on a worksheet (NOT a seperate chart worksheet but on an existing one) with the source data being variable--perhaps each x,y data for each polygon in it's own set of columns?
VBA is OK to use, too, as much of the data is generated by VBA.
-Tim
(data is below)
Polygon One
x y1
8.00 0.00
7.25 0.35
6.40 0.75
-7.85 0.75
-9.00 0.50
-10.00 0.30
-13.20 0.25
-14.00 0.00
Polygon Two
x y2
-7.90 0.00
-7.15 0.38
-6.40 0.75
-4.80 0.75
-3.80 0.69
-2.80 0.63
-1.80 0.55
1.80 0.55
2.80 0.63
3.80 0.69
4.80 0.75
6.40 0.75
7.25 0.73
8.00 0.70
9.00 0.50
10.00 0.30
13.20 0.25
14.00 0.00
This would not be a problem to plot (using a line chart, for example), except that I need the polygons to be "stacked". A stacked area chart gives an idea of what I need--however, an area chart does not have the capability for a numeric X-axis. I show 2 polygons here, but the spreadsheet has the capability of producing up to 8 polygons. Each one may have up to 40 "points" that define its shape.
End result would be a series of shaded (filled) areas that show. Chart would be fixed on a worksheet (NOT a seperate chart worksheet but on an existing one) with the source data being variable--perhaps each x,y data for each polygon in it's own set of columns?
VBA is OK to use, too, as much of the data is generated by VBA.
-Tim
(data is below)
Polygon One
x y1
8.00 0.00
7.25 0.35
6.40 0.75
-7.85 0.75
-9.00 0.50
-10.00 0.30
-13.20 0.25
-14.00 0.00
Polygon Two
x y2
-7.90 0.00
-7.15 0.38
-6.40 0.75
-4.80 0.75
-3.80 0.69
-2.80 0.63
-1.80 0.55
1.80 0.55
2.80 0.63
3.80 0.69
4.80 0.75
6.40 0.75
7.25 0.73
8.00 0.70
9.00 0.50
10.00 0.30
13.20 0.25
14.00 0.00