Bug 163727 - Save to file does not work for histogram chart
Summary: Save to file does not work for histogram chart
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
25.2.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: kurt.nordback@protonmail.com
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Histogram-Chart
  Show dependency treegraph
 
Reported: 2024-11-02 00:47 UTC by kurt.nordback@protonmail.com
Modified: 2024-11-07 13:12 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kurt.nordback@protonmail.com 2024-11-02 00:47:49 UTC
Description:
Current code allows creating a simple histogram chart in the UI. However, saving the file loses the chart contents (in both ODF and OOXML). 

Steps to Reproduce:
1. Select some data in a spreadsheet.
2. Select "Insert", then "Chart", then "Histogram". A histogram chart appears.
3. Save the file, as ODF or OOXML.
4. Close and re-open the file.

Actual Results:
The chart region is still shown, but the chart contents are lost.

Expected Results:
The chart appears as it was initially created.


Reproducible: Always


User Profile Reset: No

Additional Info:
Here are the contents of the xl/charts/chart1.xml file produced when saving to OOXML. Note that there's a <chart> element but no actual chart within it.


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

  <c:chartSpace xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
    <c:lang val="en-US"/>
    <c:roundedCorners val="0"/>
    <c:chart>
      <c:autoTitleDeleted val="1"/>
      <c:plotArea>
        <c:spPr>
          <a:noFill/>
          <a:ln w="0">
            <a:solidFill>
              <a:srgbClr val="b3b3b3"/>
            </a:solidFill>
          </a:ln>
        </c:spPr>
      </c:plotArea>
      <c:legend>
        <c:legendPos val="r"/>
        <c:overlay val="0"/>
        <c:spPr>
          <a:noFill/>
          <a:ln w="0">
            <a:noFill/>
          </a:ln>
        </c:spPr>
        <c:txPr>
          <a:bodyPr/>
          <a:lstStyle/>
          <a:p>
            <a:pPr>
              <a:defRPr b="0" sz="1000" strike="noStrike" u="none">
                <a:uFillTx/>
                <a:latin typeface="Arial"/>
              </a:defRPr>
            </a:pPr>
          </a:p>
        </c:txPr>
      </c:legend>
      <c:plotVisOnly val="1"/>
      <c:dispBlanksAs val="zero"/>
    </c:chart>
    <c:spPr>
      <a:solidFill>
        <a:srgbClr val="ffffff"/>
      </a:solidFill>
      <a:ln w="0">
        <a:noFill/>
      </a:ln>
    </c:spPr>
  </c:chartSpace>
Comment 1 raal 2024-11-04 16:40:53 UTC
Confirm Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b0195d40f3abc343b88f767f4fe109a9c1d44347
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 2 m_a_riosv 2024-11-07 12:45:17 UTC Comment hidden (obsolete)
Comment 3 m_a_riosv 2024-11-07 12:54:53 UTC Comment hidden (obsolete)