Bug 108080 - [FILESAVE DOCX] Column Chart doesn't preserve color scheme when changed to Pie chart, and later changed back to Column chart
Summary: [FILESAVE DOCX] Column Chart doesn't preserve color scheme when changed to Pi...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
4.3 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Chart-OOXML
  Show dependency treegraph
 
Reported: 2017-05-25 08:20 UTC by Gabor Kelemen
Modified: 2017-05-29 08:38 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file from LO 5.3 (20.61 KB, application/vnd.oasis.opendocument.text)
2017-05-25 08:20 UTC, Gabor Kelemen
Details
Example file saved to docx from LO 5.3 (16.32 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-05-25 08:22 UTC, Gabor Kelemen
Details
Docx in Word 2013 and odt in LO 5.3 side by side (126.31 KB, image/png)
2017-05-25 08:22 UTC, Gabor Kelemen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen 2017-05-25 08:20:26 UTC
Created attachment 133559 [details]
Example file from LO 5.3

By default the same data series in different data points have the same color. This means that if you have 4 data points with 3 data series each in a chart the “data series 1” columns are all blue, the “data series 2” columns are all orange and the “data series 3” columns are all yellow. This is the default setting for column charts in LibreOffice. 
Now change the type of the chart to Pie chart, save the document as ODT, and then reopen it in LibreOffice. 
Change the chart type back to Column chart, and now the data points have the same color: all data series in “data point 1” are blue, all data series in “data point 2” are orange, all data series in “data point 3” are yellow and all data series in “data point 4” are green. 
Now save the file as a DOCX, reopen the DOCX file, and the colors in the chart are reverted to the original settings: “data series 1” columns are all blue, the “data series 2” columns are all orange and the “data series 3” columns are all yellow.

Steps to reproduce:
1. Create an empty text document in LibreOffice Writer
2. Insert a Chart
3. Change the chart type to Pie chart
4. Save the file as ODT
5. Reopen the file in LibreOffice Writer.
6. Change the chart type back to line chart.
7. Save the file as ODT.
8. Save the file as DOCX.
9. Compare the ODT and the DOCX files.

Actual results:
The colors of the columns are different in the ODT and in the DOCX file.

Expected results:
The colors of the columns should be consistent across the ODT and DOCX files.
Comment 1 Gabor Kelemen 2017-05-25 08:22:23 UTC
Created attachment 133560 [details]
Example file saved to docx from LO 5.3
Comment 2 Gabor Kelemen 2017-05-25 08:22:39 UTC
Created attachment 133561 [details]
Docx in Word 2013 and odt in LO 5.3 side by side
Comment 3 Xisco Faulí 2017-05-25 09:19:26 UTC
Confirmed in

Version: 5.4.0.0.alpha1+
Build ID: 74d2e606fd3605fe0a585f596eaa215ae4e20d18
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk2; 
Locale: en-US (ca_ES.UTF-8); Calc: group

and

Version: 4.2.0.0.alpha1+
Build ID: fc8f44e82de4ebdd50ac5fbb9207cd1a59a927e3

In previous versions the chart wasn't exported. in banch 4.3 it was exported as
a pie chart.