I know how to do it using the chart panel but the chartviewer only accept a chart.
As a work around I'm using the swing chartnode and that work nicely. As you can see in the code below
Code: Select all
// add the chart and the crosshair overlay to the swing node
chartpanel = new ChartPanel(chart);
chartpanel.addOverlay(overlay);
chartNode.setContent(chartpanel);
// display the chart on the stackpane
pane.getChildren().addAll(chartNode);
Please anybody got any suggestion how to do just that?
Thanks