Bug 112245 - Copy paste XY chart with Points and Lines from Calc into Writer loses date format in data point tooltip
Summary: Copy paste XY chart with Points and Lines from Calc into Writer loses date fo...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Chart
  Show dependency treegraph
 
Reported: 2017-09-05 18:26 UTC by Michael Viveros
Modified: 2024-03-04 07:21 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
copy/pasted chart in Writer (13.99 KB, application/vnd.oasis.opendocument.text)
2017-09-05 18:28 UTC, Michael Viveros
Details
original chart in Calc (15.77 KB, application/vnd.oasis.opendocument.spreadsheet)
2017-09-05 18:30 UTC, Michael Viveros
Details
with Source Format unchecked (14.44 KB, application/vnd.oasis.opendocument.spreadsheet)
2017-09-06 15:25 UTC, Michael Viveros
Details
with Source Format unchecked (13.99 KB, application/vnd.oasis.opendocument.text)
2017-09-06 15:26 UTC, Michael Viveros
Details
bar chart (13.55 KB, application/vnd.oasis.opendocument.spreadsheet)
2017-09-06 15:27 UTC, Michael Viveros
Details
bar chart (13.58 KB, application/vnd.oasis.opendocument.text)
2017-09-06 15:27 UTC, Michael Viveros
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Viveros 2017-09-05 18:26:14 UTC
Description:
I create an XY chart with Lines and Points in Calc with the X-values being dates. I can hover over the points in the chart and it will show the date in the proper format in Values (Ex. 2017-09-05).

I copy/paste that chart into Writer using the default Paste (Start Object Descriptor (XML)) and when I hover over a point it shows the date as an integer (Ex. 42983) 

Steps to Reproduce:
1. create an XY chart with Lines and Points in Calc with the X-values being dates
2. copy/paste that chart into Writer using the default Paste

Actual Results:  
when I hover over a point in the chart in Writer it shows the date as an integer (Ex. 42983) 

Expected Results:
when I hover over a point in the chart in Writer it shows the date as a date with the correct format (Ex. 2017-09-05) 


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
Comment 1 Michael Viveros 2017-09-05 18:28:29 UTC
Created attachment 136041 [details]
copy/pasted chart in Writer
Comment 2 Michael Viveros 2017-09-05 18:30:23 UTC
Created attachment 136042 [details]
original chart in Calc
Comment 3 Regina Henschel 2017-09-06 00:11:41 UTC
The option "Source format" in tab Numbers in the properties of the x-axis is checked as default. When you copy the chart to Writer, the connection to the Spreadsheet is removed. Then the chart does not know that the value has to be presented as date.
Uncheck the option and format the dates manually before you copy the chart to Writer.

I cannot confirm the described behavior for Version: 6.0.0.0.alpha0+
Build ID: 6c68f38bc28bb55a4f0d53b8f38957516d3935d1
CPU threads: 4; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2017-09-04_22:05:26
Locale: de-DE (de_DE); Calc: group
For me copy&paste works the workaround to uncheck the option.

Someone with Mac OS has to test it.
Comment 4 Xisco Faulí 2017-09-06 15:02:05 UTC
Hello Michael,
Could you please test it unchecking the option mentioned by Regina in comment 3?

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the problem still persists.
Comment 5 Michael Viveros 2017-09-06 15:24:48 UTC
Regina, I'm not sure what you mean by "format the dates manually". Do you mean setting the date format in the X-Axis dialog box, after unchecking the Source Format box? I did this and then copy/pasted it into Writer and the problem still exists (dates show up as integers in Writer).

Also, the problem doesn't happen if I use a Bar chart instead of an XY chart with Lines and Points. When I create a Bar chart with dates for the x-axis in Calc and copy/paste it into Writer, the dates show up with the proper format in Writer. This happens even if the Source Format box is checked in the X-Axis dialog Numbers tab of the Bar chart.
Comment 6 Michael Viveros 2017-09-06 15:25:39 UTC
Created attachment 136067 [details]
with Source Format unchecked
Comment 7 Michael Viveros 2017-09-06 15:26:01 UTC
Created attachment 136068 [details]
with Source Format unchecked
Comment 8 Michael Viveros 2017-09-06 15:27:22 UTC
Created attachment 136069 [details]
bar chart
Comment 9 Michael Viveros 2017-09-06 15:27:45 UTC
Created attachment 136070 [details]
bar chart
Comment 10 Regina Henschel 2017-09-06 16:14:09 UTC
The attached files look correct here. So the problem might be OS dependent or something is broken in your user profile. Have you already tried to reset it? https://wiki.documentfoundation.org/UserProfile. Do you have access to a different PC to test it there?
Comment 11 Michael Viveros 2017-09-07 01:19:03 UTC
I tried resetting my user profile and using a different machine (32-bit Windows 7) and the problem still exists. I created an XY chart with Lines and Points in Calc with the X-values being dates and I unchecked the Source Format box (created the same file as the "with Source Format unchecked" attachment). When I pasted it into Writer the dates lost their format and showed up as integers when I hover over the data points.
Comment 12 Michael Viveros 2017-09-07 01:19:03 UTC Comment hidden (obsolete)
Comment 13 Regina Henschel 2017-09-07 02:09:22 UTC
I think, I understand your problem now. You do not speak about axis or labels but about the yellow tooltip box, which is available only in edit mode of the chart. Yes for these boxes I see the wrong number format too.
Comment 14 QA Administrators 2018-09-08 02:41:48 UTC Comment hidden (obsolete)
Comment 15 QA Administrators 2021-03-19 04:40:58 UTC Comment hidden (obsolete)
Comment 16 Stéphane Guillou (stragu) 2024-03-04 07:21:49 UTC
Same in OOo 3.3 -> inherited.
Still reproduced in recent trunk build:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 709866a3b8e073fab4937dcf91dcd33ff1d2bc13
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

Somewhat similar to bug 142108.