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

Message ListMessage List     Post MessagePost Message

  Spline area?
Posted by slaakso on Nov-03-2017 18:14
Threre does not seem to be a possibility to create the area chart using a spline line? Any way of doing this or possibility that it could be added?

--
Seppo

  Re: Spline area?
Posted by Peter Kwan on Nov-04-2017 00:30
Hi slaakso,

It is in fact possible to create a spline area. This is by using an "Inter-Line Layer" to fill the region between a spline curve and another line (which can be a mark line at y = 0). The "Inter-Line Coloring" sample code demonstrates how to use the InterLineLayer. One of the lines using in that example is a spline curve.

http://www.advsofteng.com/doc/cdcpp.htm#linefill.htm

Hope this can help.

Regards
Peter Kwan

  Re: Spline area?
Posted by Seppo on Nov-04-2017 21:20
OK,
that would be close enough.

Have to create the image map based in the line layer as for some reason was not able to get the image map for the InterLineLayer. The documentation would suggest that the image maps would be supported for InterLineLayer, but calling the getImageCoor2 returns empty string.

--
Seppo

  Re: Spline area?
Posted by Peter Kwan on Nov-06-2017 12:45
Hi Seppo,

Unluckily, the InterLineLayer does not have any image map.

The InterLineLayer itself does not have any data. (It has no addDataSet and you cannot pass an array of values to the InterLineLayer.)

The InterLineLayer fills the region between two lines. The lines can be produced by various ways (regular line, spline curve, mark lines and other types of lines), and can "flow" in various ways (from left to right, then right to left, then left to right again like in a "Z" shape), and the the two lines can have different number of data points and spacing irregularly. When a user clicks on a filled region in an InterLineLayer, it is often not possible to determine which data point is associated with the filled region.

Regards
Peter Kwan