Bug 70361

Summary: Add box plot (a.k.a. box-and-whiskers plot) chart type
Product: LibreOffice Reporter: Olivier Diotte <vhann3000+freedesktop>
Component: ChartAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: medium CC: bryce.schober, jbfaure, loic.grobol
Version: 4.0.4.2 release   
Hardware: Other   
OS: All   
See Also: https://issues.apache.org/ooo/show_bug.cgi?id=13184
https://tools.oasis-open.org/issues/browse/OFFICE-3664
Whiteboard:
i915 platform: i915 features:
Attachments: Example of box plot chart type.

Description Olivier Diotte 2013-10-11 02:54:12 UTC
Gnumeric already has this builtin, so maybe the code can be refactored? (if licences are compatible)
Comment 1 Jorendc 2013-10-15 19:57:44 UTC
Valid enhancement request. Can't find any duplicate.
Marking as NEW and as enhancement.
Comment 2 M Henri Day 2014-02-03 19:13:23 UTC
This would be a valuable feature to the no few users who write articles for publication in scientific journals ; moreover, it would be a feature which, for example, MS Office does not possess. Perhaps a developer could be convinced to take a look and see if the game would indeed be worth the candle ?...

Henri
Comment 3 Owen Genat 2014-02-04 04:07:10 UTC
Created attachment 93332 [details]
Example of box plot chart type.

I am attaching an example of this type of chart for clarity. It appears to be similar to the stock (a.k.a. candlestick) chart but rather than four Y values (open, close, maximum, and minimum) per X value, there are:

- Upper whisker (upper horiz. thin line == maximum)
- 3rd quartile (top of box / bar)
- Median (thick line across box / bar)
- 1st quartile (bottom of box / bar)
- Lower whisker (lower horiz. thin line == minimum)

Currently, this type of chart is not specified in ODF v1.2.
Comment 4 Owen Genat 2014-02-04 04:14:11 UTC
Summary edited for clarity and so it shows up in searches for "chart".

I should also have been clearer in my last comment / example that the top and bottom box values (which I listed as "quartile") can be variable i.e., a custom percentile.
Comment 5 Olivier Diotte 2014-02-04 11:01:33 UTC
(In reply to comment #3)
> - Upper whisker (upper horiz. thin line == maximum)
> - 3rd quartile (top of box / bar)
> - Median (thick line across box / bar)
> - 1st quartile (bottom of box / bar)
> - Lower whisker (lower horiz. thin line == minimum)
> 

It should be noted that the whiskers are not always the maximum and minimum, but rather something like 1.5[1] the IQR (Inter Quartile Range). One of the most useful features of a box plot is that it allows you to see if there are extreme values.

[1] I say "something like" because there are apparently a few different styles. Another is 2 times the IQR IIRC.


To be exact, here's how my math book does one:

      Li   Q1______Md_____Q3       Ls
x x x |-----[______|______|--------|     x x

Where: 'x' are extreme values
IQR = Q3 - Q1
Li = max{minimum value, Q1 - 1.5 * IQR}
Ls = min{maximum value, Q3 + 1.5 * IQR}
Extreme values are those that are x such that x < Li or Ls < x

I do not know exactly which of these rules vary (I only know the "1.5" can).
Comment 6 Olivier Diotte 2014-02-04 11:06:39 UTC
http://web.pdx.edu/~stipakb/download/PA551/boxplot.html this page seems to discuss all the types of boxplots
Comment 7 Owen Genat 2014-02-08 04:51:05 UTC
Many thanks Olivier for clarify my poor attempt, the link in particular is excellent. Related Apache OO issue and OASIS issue added to the See Also list. I have sent an email to the OASIS office-comment mailing list to bring this bug to their attention, as the box plot chart type is indicated as being included in ODF v1.3.
Comment 8 Olivier Delaune 2014-05-27 12:41:17 UTC
Hi! Do you have any news about that?

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.