Package org.apache.poi.ss.usermodel.charts

Examples of org.apache.poi.ss.usermodel.charts.ChartAxis


  public XSSFValueAxis createValueAxis(AxisPosition pos) {
    long id = axis.size() + 1;
    XSSFValueAxis valueAxis = new XSSFValueAxis(this, id, pos);
    if (axis.size() == 1) {
      ChartAxis ax = axis.get(0);
      ax.crossAxis(valueAxis);
      valueAxis.crossAxis(ax);
    }
    axis.add(valueAxis);
    return valueAxis;
  }
View Full Code Here


  public XSSFValueAxis createValueAxis(AxisPosition pos) {
    long id = axis.size() + 1;
    XSSFValueAxis valueAxis = new XSSFValueAxis(this, id, pos);
    if (axis.size() == 1) {
      ChartAxis ax = axis.get(0);
      ax.crossAxis(valueAxis);
      valueAxis.crossAxis(ax);
    }
    axis.add(valueAxis);
    return valueAxis;
  }
View Full Code Here

  public XSSFValueAxis createValueAxis(AxisPosition pos) {
    long id = axis.size() + 1;
    XSSFValueAxis valueAxis = new XSSFValueAxis(this, id, pos);
    if (axis.size() == 1) {
      ChartAxis ax = axis.get(0);
      ax.crossAxis(valueAxis);
      valueAxis.crossAxis(ax);
    }
    axis.add(valueAxis);
    return valueAxis;
  }
View Full Code Here

  public XSSFCategoryAxis createCategoryAxis(AxisPosition pos) {
    long id = axis.size() + 1;
    XSSFCategoryAxis categoryAxis = new XSSFCategoryAxis(this, id, pos);
    if (axis.size() == 1) {
      ChartAxis ax = axis.get(0);
      ax.crossAxis(categoryAxis);
      categoryAxis.crossAxis(ax);
    }
    axis.add(categoryAxis);
    return categoryAxis;
  }
View Full Code Here

        Sheet sheet = new SheetBuilder(wb, plotData).build();
        Drawing drawing = sheet.createDrawingPatriarch();
        ClientAnchor anchor = drawing.createAnchor(0, 0, 0, 0, 1, 1, 10, 30);
        Chart chart = drawing.createChart(anchor);

        ChartAxis bottomAxis = chart.getChartAxisFactory().createCategoryAxis(AxisPosition.BOTTOM);
        ChartAxis leftAxis = chart.getChartAxisFactory().createValueAxis(AxisPosition.LEFT);

        LineChartData lineChartData =
                chart.getChartDataFactory().createLineChartData();

        ChartDataSource<String> xs = DataSources.fromStringCellRange(sheet, CellRangeAddress.valueOf("A1:J1"));
View Full Code Here

  public XSSFValueAxis createValueAxis(AxisPosition pos) {
    long id = axis.size() + 1;
    XSSFValueAxis valueAxis = new XSSFValueAxis(this, id, pos);
    if (axis.size() == 1) {
      ChartAxis ax = axis.get(0);
      ax.crossAxis(valueAxis);
      valueAxis.crossAxis(ax);
    }
    axis.add(valueAxis);
    return valueAxis;
  }
View Full Code Here

        Sheet sheet = new SheetBuilder(wb, plotData).build();
        Drawing drawing = sheet.createDrawingPatriarch();
        ClientAnchor anchor = drawing.createAnchor(0, 0, 0, 0, 1, 1, 10, 30);
        Chart chart = drawing.createChart(anchor);

        ChartAxis bottomAxis = chart.getChartAxisFactory().createValueAxis(AxisPosition.BOTTOM);
        ChartAxis leftAxis = chart.getChartAxisFactory().createValueAxis(AxisPosition.LEFT);

        ScatterChartData scatterChartData =
                chart.getChartDataFactory().createScatterChartData();

        ChartDataSource<String> xs = DataSources.fromStringCellRange(sheet, CellRangeAddress.valueOf("A1:J1"));
View Full Code Here

        Sheet sheet = new SheetBuilder(wb, plotData).build();
        Drawing drawing = sheet.createDrawingPatriarch();
        ClientAnchor anchor = drawing.createAnchor(0, 0, 0, 0, 1, 1, 10, 30);
        Chart chart = drawing.createChart(anchor);

        ChartAxis bottomAxis = chart.getChartAxisFactory().createCategoryAxis(AxisPosition.BOTTOM);
        ChartAxis leftAxis = chart.getChartAxisFactory().createValueAxis(AxisPosition.LEFT);

        LineChartData lineChartData =
                chart.getChartDataFactory().createLineChartData();

        ChartDataSource<String> xs = DataSources.fromStringCellRange(sheet, CellRangeAddress.valueOf("A1:J1"));
View Full Code Here

        legend.setPosition(LegendPosition.TOP_RIGHT);

        LineChartData data = chart.getChartDataFactory().createLineChartData();

        // Use a category axis for the bottom axis.
        ChartAxis bottomAxis = chart.getChartAxisFactory().createCategoryAxis(AxisPosition.BOTTOM);
        ValueAxis leftAxis = chart.getChartAxisFactory().createValueAxis(AxisPosition.LEFT);
        leftAxis.setCrosses(AxisCrosses.AUTO_ZERO);

        ChartDataSource<Number> xs = DataSources.fromNumericCellRange(sheet, new CellRangeAddress(0, 0, 0, NUM_OF_COLUMNS - 1));
        ChartDataSource<Number> ys1 = DataSources.fromNumericCellRange(sheet, new CellRangeAddress(1, 1, 0, NUM_OF_COLUMNS - 1));
View Full Code Here

  public XSSFValueAxis createValueAxis(AxisPosition pos) {
    long id = axis.size() + 1;
    XSSFValueAxis valueAxis = new XSSFValueAxis(this, id, pos);
    if (axis.size() == 1) {
      ChartAxis ax = axis.get(0);
      ax.crossAxis(valueAxis);
      valueAxis.crossAxis(ax);
    }
    axis.add(valueAxis);
    return valueAxis;
  }
View Full Code Here

TOP

Related Classes of org.apache.poi.ss.usermodel.charts.ChartAxis

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.