jferard / fastods

A very fast and lightweight (no dependency) library for creating ODS (Open Document Spreadsheet, mainly for Calc) files in Java. It's a Martin Schulz's SimpleODS fork
GNU General Public License v3.0
36 stars 6 forks source link

Charts? #159

Closed jferard closed 4 years ago

jferard commented 5 years ago

Charts are handled by LO as embedded objects:

<table:shapes>
    <draw:frame draw:z-index="0" draw:style-name="gr1" draw:text-style-name="P1" svg:width="159.99mm" svg:height="89.99mm" svg:x="162.29mm" svg:y="1mm">
        <draw:object
            draw:notify-on-update-of-ranges="..."
            xlink:href="./Object 1"
            xlink:type="simple"
            xlink:show="embed"
            xlink:actuate="onLoad"><loext:p/></draw:object><draw:image xlink:href="./ObjectReplacements/Object 1" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/></draw:frame>
</table:shapes>

In the ods file:

...
Object1
    content.xml
    meta.xml
    styles.xml
...

FastODS won't create the Object1, but should provide a way to embed an existing object.

See: