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

Message ListMessage List     Post MessagePost Message

  Adding
Posted by Daniel on Jun-12-2016 21:07
Hi Peter,

I am trying to add "dynamic pointing" within a existing application.

Most of them are relatively complex and cpu-expensive. Instead of rebuilding the chart anytime a change is made the existing chart, I'dd like to "dynamically" pinpoint values as as scatter-point like information on an existing chartdirector object at runtime with a initDynamicLayer/removeDynamicLayer.

When it comes to delivering "Shapes" on scatter points, CD offers a wide array of symbols such as:
http://www.advsofteng.com/doc/cdcfdoc/shapespec.htm

Should I wish to use DrawArea primitives to add these pinpoints  via and additional layer, is there a way to deliver sophisticated shapes such as the CircleShape, or is the palette of symbols restricted to dull-er and simpler shapes such as boxes and plain polygons?

Kind regards

Daniel

  Re: Adding points dynamically to an existing CD chart object
Posted by Daniel on Jun-13-2016 22:03
Hi Peter,

SORRY FOR THE INITIAL UN-EDITED CONTENT

I am trying to add "dynamic pointing" within a existing application.

Most of the charts are relatively complex and then cpu-expensive. Instead of rebuilding the chart anytime a change is made the existing chart, I'dd like to "dynamically" pinpoint values as as scatter-point like information on an existing chartdirector object at runtime with a initDynamicLayer/removeDynamicLayer.

When it comes to delivering "Shapes" on scatter points, CD offers a wide array of symbols such as:
http://www.advsofteng.com/doc/cdcfdoc/shapespec.htm

I wish to use DrawArea primitives to add these pinpoints via and additional layer. Is there a way to deliver sophisticated shaded shapes such as the CircleShape, or is the palette of symbols restricted to dull-er and simpler shapes such as boxes and plain polygons?

Kind regards

Daniel

  Re: Adding
Posted by Peter Kwan on Jun-13-2016 23:01
Hi Daniel,

I am not too sure the exact nature of the "dynamic pointing" you would like to implement. Also, I am not sure if you are writing a web or desktop application. (The documentation you quoted in your message is from the ColdFusion edition of ChartDirector, which can only be used for web applications, but it may be because Google search points to this page and may not reflect the actual application type you are developing.)

For web applications, user interactions occur on the browser side, so Javascript will be used to draw things and "dynamic layer" cannot be used (as ChartDirector runs on the server side), and it is limited by the things that Javascript can draw. For desktop applications, "dynamic layer" can be used. In this case, the DrawAea can draw circles and ellipse (DrawArea.circle), polygons (DrawArea.polygon), rectangles with various shading effects (DrawArea.rect), text (DrawArea.text), which include all symbols available in various fonts, as well as all symbols described in the scatter symbol page and any arbitrary image (by using the <*img*> tag in CDML). See:

http://www.advsofteng.com/doc/cdcoldfusion.htm#cdml.htm

Hope this can help.

Regards
Peter Kwan

  Re: Adding points dynamically to an existing CD chart object
Posted by Daniel on Jun-14-2016 03:38
Hi Peter,

>I am not too sure the exact nature of the "dynamic pointing" you would like to implement.
>Also, I am not sure if you are writing a web or desktop application.

That's a thick desktop application à la VB, not VB though, and we already use the
"dynamic layer" functionality with great success. Quite fast indeed for banding and
extra labelling.

What I meant here is the mouse-driven runtime addition of "pinpoints" onto an existing
chart.

>For desktop applications, "dynamic layer" can be used. In this case, the DrawAea can
>draw circles and ellipse (DrawArea.circle), polygons (DrawArea.polygon), rectangles with
>various shading effects (DrawArea.rect), text (DrawArea.text), which include all symbols
>available in various fonts, as well as all symbols described in the scatter symbol page and
>any arbitrary image (by using the <*img*> tag in CDML). See:

>http://www.advsofteng.com/doc/cdcoldfusion.htm#cdml.htm

As your great documentation puts it:

"The image specification, which can be the path name for an image file, or a '@' character followed by the shape id for a built-in symbol."

Using CDML within the "DrawArea.text" to deliver the "built-in symbol" will do the
"pinpointing" job. I have been using CD for years but this had not caught my eyes:)

Thanks a lot, Peter