https://bugs.documentfoundation.org/show_bug.cgi?id=163727

            Bug ID: 163727
           Summary: Save to file does not work for histogram chart
           Product: LibreOffice
           Version: 25.2.0.0 alpha0+
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Chart
          Assignee: [email protected]
          Reporter: [email protected]

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>

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to