As I am not sure which programming language you are using, I just include a link to the code that comes with ChartDirector for .NET below. Similar code is available in other programming languages edition of ChartDirector as well.
Yes, provided the charts are stacked in a MultiChart (instead of positioned side by side or randomly.).
I have just modified the original "Zooming and Scrolling with Track Line" sample code (attached with this message). The original sample code shows one chart with 3 lines. I split the lines into two charts in a MultiChart and the Zooming and Scrolling works normally.
For the track line, the original sample code draws a track line in one chart. I modified it to include a loop to draw the track line for each of the charts in the MultiChart.
A financial chart is in fact a MultiChart. You can refer to the "Finance Chart Track Line" as a reference about how to iterate the charts and draw the track lines.
For the syncDateAxisWithViewPort, it applies to any XYChart that needs to zoom/scroll. In the sample code, there is only one x-axis scale, that means all these charts must use the same scale and have the same x-coordinates (eg. all must use the same array for Layer.setXData).
For the setChartModel, it should be applied to the MultiChart.
For the errors, are you using the exact sample code I attached in my last post, or have you modified them?
Are you using the track line code in my example, which is specifically modified to support the MultiChart? Comparing with the basic XYChart track line code, there are the following differences:
(a) For the MultiChart, we need to add an extra loop to iterate the XYChart objects and draw tracks on them one by one.
(b) For each XYChart, all drawing coordinates need to be transformed to be relative to the MultiChart. It is because the track line is actually drawing on the "viewer.Chart" surface, which is the MultiChart. That's why in my code, there are "+ c.getAbsOffsetY()" for the y-coordinates used for drawing. If you leave out the offset, the track line will not be drawn at the correct position.