Bug 129040 - [UX] In Donut charts we can not assign the same color to all the pieces
Summary: [UX] In Donut charts we can not assign the same color to all the pieces
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
6.4.0.0.beta1+
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks:
 
Reported: 2019-11-26 14:07 UTC by Franklin Weng
Modified: 2019-12-05 05:20 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Sample file (32.01 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-11-26 14:07 UTC, Franklin Weng
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franklin Weng 2019-11-26 14:07:25 UTC
Created attachment 156127 [details]
Sample file

This is actually an "advanced" and "eyecandy" usage of Donut charts.

Please see the attached file.  The data is in the top-left corner.  In A11~A30 we have 20 "1"s to form a Donut charts, which is actually used as scales in a Donut chart.  It will be in the background, and the *real* Donut chart will cover on it to form a chart with scales.

However, in such a 20-piece Donut chart we can not assign the same color to all the pieces if we choose "Color" in "Data series" -> "Area".  It will *automatically* convert into different colors for each piece.  Although in normal case there is no reason to assign the same color to each data item, but creativity is everywhere.

If we assign "Gradient" in Data series -> Area (which is used by the sample file now), it will be okay to assign the same gradient (the same From color and To color) to each piece.  But if we try to assign the same color to both From and To, it will *automatically* become grayscale (why?!).

Expected behavior:  users can be able to assign the same color to all the pieces in Donut (or other) charts.
Comment 1 Heiko Tietze 2019-12-02 09:14:22 UTC
The pie chart (whether Donut or not) intends to show the split of a few related values over their total. Like how many votes parties have received during an election. You want to see the relative percentage and clearly know who got it. Meaning it has to be different colored by default.

Charts always allow to select just one piece. Go to edit mode, select the ring, and click (not double) on one pie - it will be selected individually and you can apply a color to this particular item.

What you actually want is some kind of chart style or just a color palette applied to the bars, pies, dots etc. You can do it now via tools > options > charts > default colors, which is admittedly not handy.

Regarding this ticket I would resolve as WF.
Comment 2 Franklin Weng 2019-12-05 05:20:07 UTC
Yes, if I edit a single data point I can assign the same solid color.  Not intuitive really, but works for me.