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
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@xxxxxxxxxxx> 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