List of usage examples for org.jfree.chart.plot CombinedDomainXYPlot setDomainPannable
public void setDomainPannable(boolean pannable)
From source file:org.jfree.chart.demo.XYTaskDatasetDemo2.java
private static JFreeChart createChart() { CombinedDomainXYPlot combineddomainxyplot = new CombinedDomainXYPlot(new DateAxis("Date/Time")); combineddomainxyplot.setDomainPannable(true); combineddomainxyplot.add(createSubplot1(createDataset1())); combineddomainxyplot.add(createSubplot2(createDataset2())); JFreeChart jfreechart = new JFreeChart("XYTaskDatasetDemo2", combineddomainxyplot); jfreechart.setBackgroundPaint(Color.white); ChartUtilities.applyCurrentTheme(jfreechart); return jfreechart; }