[Bug 63421] New: Removing a data series from a XDDFScatterChartData changes the appearance of the remaining series

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 63421] New: Removing a data series from a XDDFScatterChartData changes the appearance of the remaining series

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63421

            Bug ID: 63421
           Summary: Removing a data series from a XDDFScatterChartData
                    changes the appearance of the remaining series
           Product: POI
           Version: 4.0.x-dev
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XDDF
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

If an XDDFScatterChartData object is added to a worksheet, two data series are
added to the scatter chart, and then one is removed using the new method
"removeSeries", the appearance of the remaining series is different than if the
removed series had never been added.

The JUnit test class attached to bug 63153 illustrates this bug.  When neither
data series is removed, each series is displayed with a uniform line color,
marker color, and marker shape.  When one data series is removed, the remaining
series is displayed with multiple line colors, marker colors, and marker
shapes.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63421] An XDDFScatterChartData chart with a single series and default formatting has non-uniform formatting

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63421

David Gauntt <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Removing a data series from |An XDDFScatterChartData
                   |a XDDFScatterChartData      |chart with a single series
                   |changes the appearance of   |and default formatting has
                   |the remaining series        |non-uniform formatting
                 OS|                            |All

--- Comment #1 from David Gauntt <[hidden email]> ---
You do not need to remove a series from a scatter chart to get the appearance
described.  It appears that any single-series scatter chart with default
formatting will be drawn with different line colors, marker colors, and marker
shapes for each point.

If a second series is added, then the default formatting is what one would
expect.  All of the points in a single series have the same line color, marker
color, and line shape, and the colors and shapes of the two series are
different.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63421] An XDDFScatterChartData chart with a single series and default formatting has non-uniform formatting

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63421

--- Comment #2 from David <[hidden email]> ---
This problem can be solved disabling a color property:

((XSSFChart)objChart).getCTChart().getPlotArea().getScatterChartArray(0)
                    .addNewVaryColors().setVal(false);

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63421] An XDDFScatterChartData chart with a single series and default formatting has non-uniform formatting

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63421

Alain Fagot Bearez <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #3 from Alain Fagot Bearez <[hidden email]> ---
Rather than using the low-level API calls as suggested in comment #2, the
XDDFScatterChartData object also offers direct access to the method
setVaryColors where you can disable the default behaviour.

Could you try in your code?

XDDFScatterChartData data = (XDDFScatterChartData)
chart.createData(ChartTypes.SCATTER

data.setVaryColors(false)

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63421] An XDDFScatterChartData chart with a single series and default formatting has non-uniform formatting

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63421

--- Comment #4 from David <[hidden email]> ---
data.setVaryColors(false) also works fine.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63421] An XDDFScatterChartData chart with a single series and default formatting has non-uniform formatting

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63421

Alain Fagot Bearez <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
             Status|NEEDINFO                    |RESOLVED

--- Comment #5 from Alain Fagot Bearez <[hidden email]> ---
I will close this issue as the correct way to use the API is to define as false
the attribute to vary colors.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]