Package org.odftoolkit.simple.chart

Examples of org.odftoolkit.simple.chart.DataSet


      SpreadsheetDocument spDocument = SpreadsheetDocument.loadDocument(ResourceUtilities.getAbsolutePath(TEST_FILE));
      String title = "XXXTitle";
      String[] lables = new String[]{"spring","summer","autumn","autumn"};
      String[] legends = new String[]{"hello1","hello2","hello3"};
      double[][] data = new double[][]{{1.2,2.22,3},{2,3,4},{3,4,5},{4,5,6}};
      DataSet dataset = new DataSet(lables, legends, data);
      Rectangle rect = new Rectangle();
      rect.x = 367;
      rect.y = 389;
      rect.width = 379;
      rect.height = 424;
View Full Code Here


    TextDocument tdoc = TextDocument.loadDocument(ResourceUtilities.getAbsolutePath("headerFooterHidden.odt"));
    String title = "title_name";
    String[] labels = {"hello", "hi","odf"};
    String[] legends = {"hello1", "hi1","odf1"};
    double[][] data = {{1.11, 43.23}, {3.22, 4.00, 5.43}, {121.99, 123.1, 423.00}};
    DataSet dataset = new DataSet(labels, legends, data);
    Rectangle rect = new Rectangle();
    Chart chart = tdoc.createChart(title, dataset, rect);
    chart.setChartType(ChartType.AREA);
    Assert.assertEquals(ChartType.AREA, chart.getChartType());
    Assert.assertEquals("title_name", chart.getChartTitle());
View Full Code Here

    TextDocument tdoc = TextDocument.loadDocument(ResourceUtilities.getAbsolutePath("headerFooterHidden.odt"));
    String title = "title_name";
    String[] labels = {"hello", "hi","odf"};
    String[] legends = {"hello1", "hi1","odf1"};
    double[][] data = {{1.11, 43.23}, {3.22, 4.00, 5.43}, {121.99, 123.1, 423.00}};
    DataSet dataset = new DataSet(labels, legends, data);
    Rectangle rect = new Rectangle();
    Chart chart = tdoc.createChart(title, dataset, rect);
    List chartA = tdoc.getChartByTitle("title_name");
    chart.setChartType(ChartType.AREA);
    Assert.assertEquals(ChartType.AREA, chart.getChartType());
View Full Code Here

      SpreadsheetDocument spDocument = SpreadsheetDocument.loadDocument(ResourceUtilities.getAbsolutePath(TEST_FILE));
      String title = "XXXTitle";
      String[] lables = new String[]{"spring","summer","autumn","autumn"};
      String[] legends = new String[]{"hello1","hello2","hello3"};
      double[][] data = new double[][]{{1.2,2.22,3},{2,3,4},{3,4,5},{4,5,6}};
      DataSet dataset = new DataSet(lables, legends, data);
      Rectangle rect = new Rectangle();
      rect.x = 367;
      rect.y = 389;
      rect.width = 379;
      rect.height = 424;
View Full Code Here

    TextDocument tdoc = TextDocument.loadDocument(ResourceUtilities.getAbsolutePath("headerFooterHidden.odt"));
    String title = "title_name";
    String[] labels = {"hello", "hi","odf"};
    String[] legends = {"hello1", "hi1","odf1"};
    double[][] data = {{1.11, 43.23}, {3.22, 4.00, 5.43}, {121.99, 123.1, 423.00}};
    DataSet dataset = new DataSet(labels, legends, data);
    Rectangle rect = new Rectangle();
    Chart chart = tdoc.createChart(title, dataset, rect);
    chart.setChartType(ChartType.AREA);
    Assert.assertEquals(ChartType.AREA, chart.getChartType());
    Assert.assertEquals("title_name", chart.getChartTitle());
View Full Code Here

    TextDocument tdoc = TextDocument.loadDocument(ResourceUtilities.getAbsolutePath("headerFooterHidden.odt"));
    String title = "title_name";
    String[] labels = {"hello", "hi","odf"};
    String[] legends = {"hello1", "hi1","odf1"};
    double[][] data = {{1.11, 43.23}, {3.22, 4.00, 5.43}, {121.99, 123.1, 423.00}};
    DataSet dataset = new DataSet(labels, legends, data);
    Rectangle rect = new Rectangle();
    Chart chart = tdoc.createChart(title, dataset, rect);
    List chartA = tdoc.getChartByTitle("title_name");
    chart.setChartType(ChartType.AREA);
    Assert.assertEquals(ChartType.AREA, chart.getChartType());
View Full Code Here

TOP

Related Classes of org.odftoolkit.simple.chart.DataSet

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.