public static JFreeChart createXYStepAreaChart(string title, string xAxisLabel, string yAxisLabel, XYDataset dataset, PlotOrientation orientation, bool legend, bool tooltips, bool urls) { int num1 = tooltips ? 1 : 0; int num2 = urls ? 1 : 0; int num3 = legend ? 1 : 0; if (orientation == null) { string str = "Null 'orientation' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else { NumberAxis numberAxis1 = new NumberAxis(xAxisLabel); numberAxis1.setAutoRangeIncludesZero(false); NumberAxis numberAxis2 = new NumberAxis(yAxisLabel); StandardXYToolTipGenerator toolTipGenerator = (StandardXYToolTipGenerator) null; if (num1 != 0) toolTipGenerator = new StandardXYToolTipGenerator(); StandardXYURLGenerator standardXyurlGenerator = (StandardXYURLGenerator) null; if (num2 != 0) standardXyurlGenerator = new StandardXYURLGenerator(); XYStepAreaRenderer stepAreaRenderer = new XYStepAreaRenderer(3, (XYToolTipGenerator) toolTipGenerator, (XYURLGenerator) standardXyurlGenerator); XYPlot xyPlot = new XYPlot(dataset, (ValueAxis) numberAxis1, (ValueAxis) numberAxis2, (XYItemRenderer) null); xyPlot.setRenderer((XYItemRenderer) stepAreaRenderer); xyPlot.setOrientation(orientation); xyPlot.setDomainCrosshairVisible(false); xyPlot.setRangeCrosshairVisible(false); JFreeChart.__\u003Cclinit\u003E(); JFreeChart jfc = new JFreeChart(title, JFreeChart.__\u003C\u003EDEFAULT_TITLE_FONT, (Plot) xyPlot, num3 != 0); ChartFactory.currentTheme.apply(jfc); return jfc; } }
public static JFreeChart createTimeSeriesChart(string title, string timeAxisLabel, string valueAxisLabel, XYDataset dataset, bool legend, bool tooltips, bool urls) { int num1 = tooltips ? 1 : 0; int num2 = urls ? 1 : 0; int num3 = legend ? 1 : 0; DateAxis dateAxis = new DateAxis(timeAxisLabel); dateAxis.setLowerMargin(0.02); dateAxis.setUpperMargin(0.02); NumberAxis numberAxis = new NumberAxis(valueAxisLabel); numberAxis.setAutoRangeIncludesZero(false); XYPlot xyPlot = new XYPlot(dataset, (ValueAxis) dateAxis, (ValueAxis) numberAxis, (XYItemRenderer) null); StandardXYToolTipGenerator toolTipGenerator = (StandardXYToolTipGenerator) null; if (num1 != 0) toolTipGenerator = StandardXYToolTipGenerator.getTimeSeriesInstance(); StandardXYURLGenerator standardXyurlGenerator = (StandardXYURLGenerator) null; if (num2 != 0) standardXyurlGenerator = new StandardXYURLGenerator(); XYLineAndShapeRenderer andShapeRenderer = new XYLineAndShapeRenderer(true, false); andShapeRenderer.setBaseToolTipGenerator((XYToolTipGenerator) toolTipGenerator); andShapeRenderer.setURLGenerator((XYURLGenerator) standardXyurlGenerator); xyPlot.setRenderer((XYItemRenderer) andShapeRenderer); JFreeChart.__\u003Cclinit\u003E(); JFreeChart jfc = new JFreeChart(title, JFreeChart.__\u003C\u003EDEFAULT_TITLE_FONT, (Plot) xyPlot, num3 != 0); ChartFactory.currentTheme.apply(jfc); return jfc; }