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

Message ListMessage List     Post MessagePost Message

  Is it possible to add a second layer with data to a surface chart?
Posted by Francisco on May-12-2015 13:23
Attachments:
Good evining,
I have an scattered data surface chart and would like to to add some additional points
(similar to when you add a new scatter layer in XY charts).
Is it possible?
Thanks!
Surface chart with data points.JPG

  Re: Is it possible to add a second layer with data to a surface chart?
Posted by Peter Kwan on May-13-2015 22:52
Hi Francisco,

Sorry for the late reply.

In the next version of ChartDirector (the C++ edition is already available for download in the
staging area, and other editions will soon come), there will be an API to allow you to
determine the pixel x and y coordinates given the data xyz coordinates. You can then use
then use BaseChart.addText or DrawArea to draw custom shapes, text and lines on top of
the chart.

Note that this is not equivalent to overlaying a 3D scatter layer over a surface. For
example, a 3D symbol can stay on top of the surface, yet it can be partly and totally hidden
by another part of the 3D surface, such as being hidden behind "hill" on the surface. The
surface can also intersect with the symbols, such as the surface cutting a symbol into two
halves, and the symbol can also cut into the surface. The symbols can also block each
others.

For your case, if you can accept that the symbols are like a scatter layer in an XYChart
(that is, they are always in front of the surface), you can wait for the next version of
ChartDirector, which will be available shortly.

Regards
Peter Kwan

  Re: Is it possible to add a second layer with data to a surface chart?
Posted by Francisco on May-15-2015 12:50
Peter,
Thank you very much for your reply.
I will give it a try.
Best regards,
Francisco

  Re: Is it possible to add a second layer with data to a surface chart?
Posted by mill on Jul-24-2015 14:41
Hi.
Is there any sample which carries out marking to a surface chart Winform C#?
Moreover, can it specify a position from the data of X Y Z?
Regards,

  Re: Is it possible to add a second layer with data to a surface chart?
Posted by Peter Kwan on Jul-25-2015 03:24
Attachments:
Hi mill,

In ChartDirector 6.0, there are APIs to determine the pixel coordinates of data (x, y, z)
positions. You can then draw things based on that pixel coordinate.

Note that this may not the same as "marking" a surface, depending on what does "marking"
means and the type of surface. For example, the above can only draw things in front of the
surface, but not totally or partially behind the surface, or objects that intersect with the
surface. Also, you need to know the data coordinates (x, y, z) to obtain the pixel
coordinates.

I have attached an example for your reference. It is based on the "Surface Chart (3)"
sample code, with 4 lines added to obtain the x and y pixel coordinates and to draw the
circle shape.

Hope this can help.

Regards
Peter Kwan
surface3.jpg
surface3.aspx
surface3.aspx

3.74 Kb

  Re: Is it possible to add a second layer with data to a surface chart?
Posted by mill on Jul-25-2015 09:20
Hi Peter,
Perfect!  Thank you.