ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Surface chart with 0 width surface
Posted by Dan on Oct-23-2013 02:42
I'm working with a scattered-data surface chart. Occasionally, all the data lines up on the
same value along a axis (X, in the case I'm dealing with now). When that happens, it's like
you've really got a line graph in 3d space, rather than a surface, per se. There's certainly
nothing to spline.

What the surface chart does is simply not render any data. It builds the walls and axes,
but doesn't render any data.

Is there anything I can do to work around this? I'd like perhaps a thin ribbon of data
centered on the one value I have in my data.

  Re: Surface chart with 0 width surface
Posted by Peter Kwan on Oct-24-2013 00:20
Hi Dan,

Currently, ChartDirector surface chart can only draw a surface which is larger than zero in area. If the surface area is exactly zero (eg. if all the points lie on a straight line), then nothing can be drawn.

What you normally see as a line on the computer screen is in fact a rectangle or polygon (it has a length and a line width). But for the surface chart, ChartDirector will not automatically change a line into a polygon (that is, into a surface). If you would like to see a line, you would need add more data points to change it into a polygon.

For example, if all your data points are at y = 0, then you may add more data points with the same x and z values as your original data points, but with y = 0.1. In this way, the data will become a "strip" with a width of 0.1 y-unit.

In the more general case, you can check if your data points are colinear (it is easy to check). If they are colinear, you may add a duplicated set of data points with the y-coordinate offseted by a small amount. This will then become a "strip".

Hope this can help.

Regards
Peter Kwan