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

Message ListMessage List     Post MessagePost Message

  Guidance Needed on Java/SWING Usage & Sample Code
Posted by Dina Metwalli on Nov-27-2025 23:19
Hello ASE Team,

I am implementing a Java multi-line and multi-axis chart and wanted to add user-interaction features such as zooming, trackable-cursor, clicking on the chart, etc. The application UI is based on JavaFX which I know offers a SwingNode object.

Could you please advise where I can find sample code for ChartDirector's Java/SWING interactive charts?

I see that the online documentation only offers JSP code samples and the documentation for some Swing controls such as ChartViewer but no example usage. I also managed to find sample code for interactive real-time charts. However, the chart I am implementing isn't a real-time chart and requires less complexity.

Thank you in advance.

Dina

  Re: Guidance Needed on Java/SWING Usage & Sample Code
Posted by Peter Kwan on Nov-28-2025 01:10
Hi Dina,

We have removed Java/SWING support in ChartDirector version 7.

You can still download ChartDirector version 6, which has a lot of examples in Java SWING.

https://www.advsofteng.com/download_v6x.html

The documentation is included in the download. You can also access online documentation with the link below:

https://www.advsofteng.com/doc_v60/cdjava.htm

The following is a page that mentions one of the the sample code for a zoomable and scrollable chart.

https://www.advsofteng.com/doc_v60/cdjava.htm#zoomscrolltrack.htm

Note that we have never tested with JavaFX, and we are not sure if it can work with Java FX.

Best Regards
Peter Kwan