Issue 40172 - Y overflow in YX-Charts (data clipping error)
Summary: Y overflow in YX-Charts (data clipping error)
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: chart (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: kla
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-07 22:36 UTC by kunkunuzzi
Modified: 2013-02-24 21:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
The buggy diagram (note: green and blue curve should be invisible due to their big values) (13.22 KB, image/png)
2005-01-07 22:48 UTC, kunkunuzzi
no flags Details
This is the spreadsheet, which shows that behaviour on my machine (24.86 KB, image/png)
2005-01-07 22:50 UTC, kunkunuzzi
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description kunkunuzzi 2005-01-07 22:36:07 UTC
When I display a XY- chart and rescale Y manually to a value very much slower
than  the default, strange Lines may appear, which look like an overflow.

In the sample there are 3 curves which differ strongly in their value range. 
Therefore I created 3 equivalent charts with different Y scaling.

The Chart with the lowest Y range shows strange lines, which look like an
overflow of something.
Comment 1 kunkunuzzi 2005-01-07 22:48:47 UTC
Created attachment 21225 [details]
The buggy diagram (note: green and blue curve should be invisible due to their big values)
Comment 2 kunkunuzzi 2005-01-07 22:50:17 UTC
Created attachment 21226 [details]
This is the spreadsheet, which shows that behaviour on my machine
Comment 3 bjoern.milcke 2005-01-20 16:20:49 UTC
The problem here is that for clipping the data points are transformed to graphic
coordinates, which are integer values. The 10^6 values become larger that some
billions in screen coordinates as the scale spans only about 10^-2. As a results
the integers overflow (a 3*10^8 becomes sth like -10^8) and the clipping returns
the vertical lines.
As a solution the clipping has to be done in the value coordinate system using
double values. This is too much effort for the old chart. In the new chart it
might already been fixed, but at least we will address it there.

As a workaround, you can build a new chart with only the interesting series
selected. The only difference (apart from the buggy lines) will be the that in
the legend you will only see an entry for one series and not for the other two,
but as you can't see the series themselves this should be no big deal.
Comment 4 kla 2005-01-21 09:52:38 UTC
-> BM: Thx for the superb description and the workaround.
-> kunkunuzzu: I think its possible to work with the workaround. 
I case of the efford -> Target office later
-> Iha: pls take care of that Issue for the new Chart.
Comment 5 IngridvdM 2005-01-21 10:41:57 UTC
I will check this.
Comment 6 IngridvdM 2006-03-17 13:41:21 UTC
This bug has vanished in the chart reimplementation in CWS chart2mst3.
Comment 7 IngridvdM 2006-03-17 13:43:56 UTC
changed prio
Comment 8 IngridvdM 2006-03-17 16:52:28 UTC
Fixed in CWS chart2mst3.

re-open issue and reassign to kla@openoffice.org
Comment 9 IngridvdM 2006-03-17 16:52:33 UTC
reassign to kla@openoffice.org
Comment 10 IngridvdM 2006-03-17 16:52:37 UTC
reset resolution to FIXED
Comment 11 bjoern.milcke 2006-06-23 10:46:09 UTC
Changed target to 2.x
Comment 12 IngridvdM 2007-01-18 11:53:45 UTC
changed target to 2.3
Comment 13 kla 2007-04-23 09:28:23 UTC
seen ok -> verified
Comment 14 p9w.vu.31122010 2007-06-14 15:43:31 UTC
Fixed in 680 m215, closing.