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

Message ListMessage List     Post MessagePost Message

  3d Line charts
Posted by Chris on Dec-05-2023 12:17
Are 3D line charts possible or just 2D? If 3D is possible, can the colors of the line change based on the X Y position of the line?

  Re: 3d Line charts
Posted by Peter Kwan on Dec-06-2023 05:24
Hi Chris,

The 3D Line Chart can be one of the following chart types:

(a) A line chart drawn using 3D data.

https://www.advsofteng.com/doc/cdnet.htm#threedline.htm

(b) A line chart drawn using 2D data, but instead of a line, a "strip" or "ribbon" is used.

https://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1681639966#N1681736261

For 2D line chart, you can change the color of the line based on the (x, y) position. Unluckily, the same method would not look right in 3D. If you need a line with multiple colors, you would need to draw it as multiple line segments, so you can control the color of each line segment. This method is more flexible as the line can be colored based on any criteria you like. An example is at:

https://www.advsofteng.com/doc/cdnet.htm#multicolorline.htm

Best Regards
Peter Kwan