Bug 124227 - Calc chart - incomplete copy paste
Summary: Calc chart - incomplete copy paste
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, regression
Depends on:
Blocks: Chart Paste
  Show dependency treegraph
 
Reported: 2019-03-20 16:45 UTC by Jim
Modified: 2024-02-13 08:25 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
spreadsheet with inserted chart (19.31 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-03-21 11:54 UTC, Jim
Details
improper image image resulting from copy paste (48.06 KB, application/vnd.oasis.opendocument.text)
2019-03-21 11:58 UTC, Jim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim 2019-03-20 16:45:24 UTC
This problem occurs with:

  Version: 6.1.5.2 (x64)
  Build ID: 90f8dcf33c87b3705e78202e3df5142b201bd805
  CPU threads: 8
  OS: Windows 10.0
  UI render: GL
  Locale: en-US (en_US)
  Calc: CL

I have a model worksheet with 5 columns and 20 rows as shown in the following screenshot. The columns contain classic microeconomics average fixed cost, average variable cost, average total cost, and marginal cost data.

https://i.stack.imgur.com/alRXQ.png

From this data I am producing the following four charts including legends: that is I have created four additional tabs in the worksheet containing the full spreadsheet shown above; in each tab I am creating one of the below charts. In each chart the first column is used for the Y axis label.

    a chart showing the single AFC curve
    a chart showing the curves for AFC and AVC
    a chart showing the curves for AFC, AVC and ATC
    a chart showing the curves for AFC, AVC, ATC, MC

Each chart in each tab is properly formed - looks good - no complaints. However, before I get to my problem I did discover a charting improvement opportunity. If one selects "smoothing" and "b-spline" and then the degree of the smoothing function to apply, the smoothing is applied to every column of data in that chart. It would be better (is necessary) under some circumstances where curves of different degrees exist to be able to apply smoothing to columns rather than just a whole data set. It seems to me, since the architecture and logic already exists in Calc, that it should be easy to allow individually applying smoothing to each column of data, rather than just applying the same smoothing to everything in a single chart.

Back to my problem, I want to copy each of the charts (AFC, AVC, ATC, MC) from each tab for use in presentation material. For instance, if I copy and paste the ATC chart I get the following proper image:

https://i.stack.imgur.com/1NuwK.png

However, (yeah, it took me a long time to get here), there is a very strange problem when I cut and paste the MC chart. To be clear, the chart in the worksheet tab is proper. It shows the four lines and four legend entries. However, when I copy then paste the MC chart, I get only the AFC, AVC, and ATC lines, but I do get all four items in the legend! Don't believe me - look at this image:

https://i.stack.imgur.com/p5dVc.png

I have tried deleting and recreating the worksheets, and charts, and rebooting the computer in various ways, but the problem always recurs. Yes, this seems not just unlikely, but impossible, and yet here it is. So please someone, can you duplicate my problem? Can you tell me what I'm doing wrong?

I did finally manage a work around by separately, using the W10P sniping tool to separately copy the chart and legend and paste them into my presentation. However, I intend to replace the data in this model with real data, make additional charts and include the charts in future, real world decision-making and widely seen presentations. It would be much easier, and good LibreOffice publicity, if LibreOffice Calc, cut, and paste worked as expected.
Comment 1 Xisco Faulí 2019-03-20 23:11:48 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provide
Comment 2 Jim 2019-03-20 23:43:57 UTC
 I included document links in my report: 1st contains the spreadsheet data; second contains a chart of 3 columns; third contains the bug where I'm graphing 4 columns of data and get 4 legends but only three columns are graphed. If those links aren't sufficient do you want 1 attachment containing the 3 exhibits or do you want 3 separate attachments?
Comment 3 Xisco Faulí 2019-03-21 09:54:28 UTC
(In reply to Jim from comment #2)
>  I included document links in my report: 1st contains the spreadsheet data;
> second contains a chart of 3 columns; third contains the bug where I'm
> graphing 4 columns of data and get 4 legends but only three columns are
> graphed. If those links aren't sufficient do you want 1 attachment
> containing the 3 exhibits or do you want 3 separate attachments?

Those are images, not documents. Please attached the document.
Comment 4 Jim 2019-03-21 11:54:48 UTC
Created attachment 150144 [details]
spreadsheet with inserted chart

see next attachment for copy/paste problem
Comment 5 Jim 2019-03-21 11:58:22 UTC
Created attachment 150145 [details]
improper image image resulting from copy paste
Comment 6 Buovjaga 2019-07-14 17:29:24 UTC
Steps:
1. Open attachment 150144 [details]
2. Copy the chart and paste to a new Impress presentation

The pasted result should have all the lines, but since 4.2 some are missing.

Bibisected with 42max to range: https://gerrit.libreoffice.org/plugins/gitiles/core/+log/c7bdee8dbd1cf260a8513a0d31b36f90daa70f1c..ec0080c40cfdb26896537f47a4c2e0439f9afdb1
which has lots of Calc commits.
Comment 7 QA Administrators 2021-07-14 03:34:22 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2023-07-15 03:13:16 UTC Comment hidden (obsolete)
Comment 9 Tex2002ans 2024-02-12 19:41:05 UTC
Following comment 6, I CANNOT reproduce.

Copying/pasting the chart from Calc->Impress looks exactly the same to me.

(Seems like it's been fixed since 2019.)

- - -

I retested in:

Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 10 Buovjaga 2024-02-12 20:44:42 UTC
Yes, let's close.

Arch Linux 64-bit, X11
Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: 420(Build:3)
CPU threads: 8; OS: Linux 6.7; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
24.2.0-1
Calc: threaded
Comment 11 Xisco Faulí 2024-02-13 08:25:23 UTC
Not even reproducible in

Version: 7.3.0.0.alpha1+ / LibreOffice Community
Build ID: 229123ccc6f90ebf66b3e659bebbd53f8a9bdd3a
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: fr-FR (es_ES.UTF-8); UI: en-US
Calc: threaded