a missing point when the bottom axis gets inverted (line)
Posted: Mon Jul 11, 2011 8:15 pm
Hi,
I have a simple line chart. When I invert the bottom axis, the second point from the last is always missing on the chart. Is this a known bug? If so, is there any workaround for this issue?
Here is a run-as example.
I have a simple line chart. When I invert the bottom axis, the second point from the last is always missing on the chart. Is this a known bug? If so, is there any workaround for this issue?
Here is a run-as example.
Code: Select all
public static void main(String[] args) {
JFrame frame = new JFrame();
JPanel panel = new JPanel();
panel.setSize(600, 600);
TChart chart = new TChart();
Map<Integer, String> xLabelMap = new HashMap<Integer, String>();
panel.add(chart);
Line l = new Line(chart.getChart());
l.add(0, 1, "A");
l.add(1, 2, "B");
l.add(2, 3, "C");
l.add(3, 4, "D");
l.getPointer().setVisible(true);
chart.getAxes().getBottom().setInverted(true);
chart.getAspect().setView3D(false);
frame.add(panel);
frame.setSize(600, 600);
frame.setVisible(true);
}