Scroll arrow locked
Posted: Mon Sep 05, 2011 7:27 pm
Hello,
I'm trying to make the scroll arrow to go only where there is value in the series. In Delphi works with the lock, when the series finish.
I read in the tutorial 08 the instructions, but I could not.
I did something wrong?
The following code:
I'm trying to make the scroll arrow to go only where there is value in the series. In Delphi works with the lock, when the series finish.
I read in the tutorial 08 the instructions, but I could not.
I did something wrong?
The following code:
Code: Select all
JFrame frame = new JFrame();
JPanel panel = new JPanel();
panel.setSize(600, 600);
TChart chart = new TChart();
chart.getAxes().getBottom().getLabels().setValueFormat("0");
panel.add(chart);
Bar bar = new Bar(chart.getChart());
for (int i = 0; i < 10; i++) {
bar.add(i);
}
AxisArrow axisDown = new AxisArrow(chart.getChart().getAxes().getBottom());
axisDown.setScrollInverted(false);
chart.getChart().getTools().add(axisDown);
chart.getAxes().getBottom().setAutomatic(false);
chart.getAxes().getBottom().setMinimum(0.0);
chart.getAxes().getBottom().setMaximum(10.0);
frame.add(panel);
frame.setSize(600, 600);
frame.setVisible(true);