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());