marcomachadosantos / gwt-chronoscope

Automatically exported from code.google.com/p/gwt-chronoscope
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Datasets with identical axis ids are not allocated onto identical range axes #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The following test case demonstrates the problem:
public class DefaultXYPlotTest extends GWTTestCase {

  public String getModuleName() {
    return "org.timepedia.chronoscope.Chronoscope";
  }

  public void testAutoAssignDatasetAxesSameAxis() {

    XYDataset ds[]=new XYDataset[2];
    ds[0]=new MockXYDataset();
    ds[1]=new MockXYDataset();
    ChartPanel cp= Chronoscope.createTimeseriesChart(ds, 600, 400);
    RootPanel.get().add(cp);
    XYPlot plot = cp.getChart().getPlot();

    assertEquals(plot.getRangeAxis(0), plot.getRangeAxis(1));

  }
}

Original issue reported on code.google.com by cromwell...@gmail.com on 29 Feb 2008 at 11:46