Bug 67259 - PDF: Charts in Writer documents do not refresh to represent new data in generated PDF: Tilte and axis labels incorrect
Summary: PDF: Charts in Writer documents do not refresh to represent new data in gener...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.4.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Chart-Legends
  Show dependency treegraph
 
Reported: 2013-07-24 15:16 UTC by Brandon Tylke
Modified: 2019-01-22 06:59 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example Document (133.78 KB, application/vnd.oasis.opendocument.text)
2013-07-24 15:16 UTC, Brandon Tylke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brandon Tylke 2013-07-24 15:16:37 UTC
Created attachment 82941 [details]
Example Document

Charts in Writer documents use old ObjectReplacements/VCLMTF files when generating PDFs.

Steps to reproduce:

1) Open attached 'sample_output.odt' document.  Charts correctly represent table data.
2) Export Directly as PDF

Expected result:
The chart should represent changed table data.

Actual result:
The chart does not update, it instead loads a previous VCLMTF rendering from the internal ObjectReplacements folder.

Build: Version 4.0.4.2 (Build ID: 400m0(Build:2))
Platform: Ubuntu 12.04.2 LTS 64-bit

Build: LibreOffice 4.0.1.2
Platform: CentOS release 5.8 (Final) 64-bit

Additional information:
If the chart is altered directly by altering the dimensions, that chart then generates as expected in the resulting PDF.

The sample document was originally created as a template document and is manipulated externally, presenting end users only the resulting PDF.
Comment 1 Brandon Tylke 2013-07-24 17:42:09 UTC
Additional information:
If you remove the files within the internal ObjectReplacements folder, the charts render as expected.
Comment 2 Cor Nouws 2013-07-26 22:59:27 UTC
Hi Brandon,

Thanks for the description.
When I open the 67259_sample_output.odt in 4.1.0.4 from the LibreOffice website installed on Ubuntu, and export to PDF, at least on the first 5 pages I see no differences. (might be mm, but I didn't took a ruler...)

Can you pls check in a newer version?
regards,
Cor
Comment 3 Brandon Tylke 2013-07-27 13:01:19 UTC
Hi Cor,

The issue isn't actually with the chart placement, but what the chart is displaying.  If the charts on your screen have $month_qtr$ in the chart title, it is incorrect.  The first chart title should be 'Categories - Current Quarter 1'.  Skew the chart slightly and your will see a completely different, but correct, chart.  I opened the example document on a Windows 7 box in LibreOffice 3.5.5.3 and it exhibits the same behavior.

Thank you for your time.
 - Brandon
Comment 4 Cor Nouws 2013-07-30 20:23:47 UTC
(In reply to comment #3)

Thanks!

> The issue isn't actually with the chart placement, but what the chart is
> displaying.  If the charts on your screen have $month_qtr$ in the chart
> title, it is incorrect.  The first chart title should be 'Categories -
> Current Quarter 1'.  Skew the chart slightly and your will see a completely
> different, but correct, chart.


So indeed, it's about the title and the Y-axis labels


> I opened the example document on a Windows 7
> box in LibreOffice 3.5.5.3 and it exhibits the same behavior.

So it was not correct by then too.

(Should be checked if it has been fine in a previous version)
Comment 5 QA Administrators 2015-04-19 03:20:57 UTC Comment hidden (obsolete)
Comment 6 Buovjaga 2015-06-15 17:42:31 UTC
(In reply to Brandon Tylke from comment #3)
> Hi Cor,
> 
> The issue isn't actually with the chart placement, but what the chart is
> displaying.  If the charts on your screen have $month_qtr$ in the chart
> title, it is incorrect.  The first chart title should be 'Categories -
> Current Quarter 1'.  Skew the chart slightly and your will see a completely
> different, but correct, chart.  I opened the example document on a Windows 7
> box in LibreOffice 3.5.5.3 and it exhibits the same behavior.

Still exports like this.

Win 7 Pro 64-bit Version: 5.1.0.0.alpha1+
Build ID: 01a189abcd9a4ca472a74b3b2c000c9338fc2c91
TinderBox: Win-x86@39, Branch:master, Time: 2015-06-14_07:46:28
Locale: fi-FI (fi_FI)
Comment 7 QA Administrators 2016-09-20 10:01:44 UTC Comment hidden (obsolete)
Comment 8 Roman Kuznetsov 2019-01-22 06:59:39 UTC
still repro with file from attach in

Version: 6.2.0.1
Build ID: 0412ee99e862f384c1106d0841a950c4cfaa9df1
CPU threads: 4; OS: Windows 6.1; UI render: default; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: threaded

but this problem isn't export to PDF, but incorrect chart shows