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

Message ListMessage List     Post MessagePost Message

  Scrollable layer on current diagram
Posted by Mattias on Jul-24-2025 18:05
Attachments:
Hi,

First of all, thank you for a great product.
I´ve been looking for a solution.

First I will try to explain how it works today.
I have a static diagram based on set of values updated daily.
On this I add a forecast layer. This works perfect. But the thing is the forecast is stored for evaluation of forecast so you can click on an arrow an the page i reloaded with a different forecast. Also works.

What I want to do is preload the forecasts and have them scrollable, is there an exampel I can look at to do this. The forecast has two lines and a InterLineLayer.
Is this possible?

And if so, is it possible to do the scrolle controll in a single place but change the forecast on many diagrams at the same time(Same page).

I´ve included an image(very bad looking) to try to explain futher.

I using classic.asp

Thank you,
Mattias
Try to explain image.gif

  Re: Scrollable layer on current diagram
Posted by Peter Kwan on Aug-02-2025 02:25
Hi Mattias,

Sorry for the very late reply. I remembered there are some similar examples in this forum. I could find some of them but they were in a different programming language or framework and not in classic ASP. I considered to translate them, but then I forgot about it.

For a quick answer, you can certainly make the chart scrollable, and the chart including the InterLineLayer and other lines.

The following is a simple example that comes with ChartDirector 7:

https://www.advsofteng.com/doc/cdcom.htm#simplezoomscrollweb.htm

The above example contains 3 lines. You can certainly add an InterLineLayer to the chart to fill the region between two of the lines.

For a "single control" updating many charts, the details depend on what is the "single control". In the above sample code, the "control" is implemented by the Javascript ChartViewer (JsChartViewer), and the chart itself is the "control". (The user can drag and click on the chart to zoom/scroll.) When the user try to zoom/scroll, the JsChartViewer will raise an "partialUpdate" event. In the sample code, the event handler simply update the chart.

If you need to update multiple charts with a "single control", then in the event handler of that single control, you can use a loop to update multiple charts. Note that each update is a single HTTP request to the server. On the server side of the code, it needs to check which chart is requesting the update and return the correct update.

If there are many charts to update, it may be easier to just refresh the entire page with the updated parameters.

If you need further help, please let me know.

Best Regards
Peter Kwan