OdfContentDom contentDom2 = sdoc.getContentDom();
DrawFrameElement drawFrame = contentDom2.newOdfElement(DrawFrameElement.class);
TableTableCellElement lastCell = (TableTableCellElement) contentDom2.getXPath().evaluate(
"//table:table-cell[last()]", contentDom2, XPathConstants.NODE);
lastCell.appendChild(drawFrame);
drawFrame.removeAttribute("text:anchor-type");
this.drawFrame = drawFrame;
return drawFrame;
}
private Chart createChart(String title, SpreadsheetDocument document, CellRangeAddressList cellRangeAddr, boolean firstRowAsLabel,