Regarding ODF import and Export support for HistogramChart

Devansh Varshney varshney.devansh614 at gmail.com
Sun Jan 5 14:18:34 UTC 2025


>
> This is wrong:
> chart:class="chart:histogram"
> "histogram" does not belong to the chart types that are predefined in
> the ODF standard. Only the names of the predefined chart types may have
> a prefix "chart". For chart types not defined in the standard you have
> to use a prefix different from "chart". For chart types defined by
> LibreOffice use the prefix "loext".
> So it should be
> chart:class="loext:histogram"
> in both cases.

You're I have right corrected this. silly mistake.

This is wrong:
> <loext:histogram-configuration loext:histogram-frequency-type="0"
>                                 loext:histogram-bin-count=""
>                                 loext:histogram-overflow-bin=""
>                                 loext:histogram-underflow-bin=""
>                                 loext:histogram-interval-closed="true"/>
>
> If an attribute does not exist, you simple omit the attribute.
> (Precondition it is set as 'optional' in the schema, as it is in your
> case.) So the element would be
> <loext:histogram-configuration loext:histogram-frequency-type="0"
>                                 loext:histogram-interval-closed="true"/>


done.


 ✘  devansh   odf_histogram  instdir/program/scalc

   [25/01/5| 7:39PM]
warn:vcl.schedule:541381:541381:vcl/source/app/scheduler.cxx:639: Stop the
task before changing the priority, as it will just change after the task
was scheduled with the old prio!
warn:sfx.dialog:541381:541381:sfx2/source/dialog/filtergrouping.cxx:357:
already have an element for WordPerfect
warn:sfx.dialog:541381:541381:sfx2/source/dialog/filtergrouping.cxx:357:
already have an element for writerweb8_writer_template
warn:sfx.dialog:541381:541381:sfx2/source/dialog/filtergrouping.cxx:357:
already have an element for writerglobal8
warn:xmloff.chart:541381:541381:xmloff/source/chart/SchXMLChartContext.cxx:419:
need a charttype to create a diagram
warn:xmloff.core:541381:541381:xmloff/source/core/xmlimp.cxx:852: No
context for unknown-element
urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0
loext:histogram-configuration
warn:sal.file:541381:541381:sal/osl/unx/file_misc.cxx:659: Invalid file URL
warn:sal.file:541381:541381:sal/osl/unx/file_misc.cxx:659: Invalid file URL


[image: image.png]
still opening as Column chart looking into this.(My make build is having
some trouble )


On Sun, 5 Jan 2025 at 19:10, Regina Henschel <rb.henschel at t-online.de>
wrote:

> Hi Devansh,
>
> This is wrong:
> chart:class="chart:histogram"
>
> "histogram" does not belong to the chart types that are predefined in
> the ODF standard. Only the names of the predefined chart types may have
> a prefix "chart". For chart types not defined in the standard you have
> to use a prefix different from "chart". For chart types defined by
> LibreOffice use the prefix "loext".
> So it should be
> chart:class="loext:histogram"
> in both cases.
>
> This is wrong:
> <loext:histogram-configuration loext:histogram-frequency-type="0"
>                                 loext:histogram-bin-count=""
>                                 loext:histogram-overflow-bin=""
>                                 loext:histogram-underflow-bin=""
>                                 loext:histogram-interval-closed="true"/>
>
> If an attribute does not exist, you simple omit the attribute.
> (Precondition it is set as 'optional' in the schema, as it is in your
> case.) So the element would be
> <loext:histogram-configuration loext:histogram-frequency-type="0"
>                                 loext:histogram-interval-closed="true"/>
>
> Kind regards,
> Regina
>


-- 
*Regards,*
*Devansh*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20250105/ad84f045/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 1049315 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20250105/ad84f045/attachment-0001.png>


More information about the LibreOffice mailing list