diff options
author | Alain Béarez <abearez@apache.org> | 2020-01-13 00:27:03 +0000 |
---|---|---|
committer | Alain Béarez <abearez@apache.org> | 2020-01-13 00:27:03 +0000 |
commit | 2ff9f0fbbf449315f3d5f648fa4e8f34ed2c381b (patch) | |
tree | 7af3a23ac378ef0bfd1ad0b4d2449c026f2422b4 | |
parent | 22dd38ef72ca26b790193ef8e44e5b5a957d74d6 (diff) | |
download | poi-2ff9f0fbbf449315f3d5f648fa4e8f34ed2c381b.tar.gz poi-2ff9f0fbbf449315f3d5f648fa4e8f34ed2c381b.zip |
Implement error bars on scatter chart data series
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872691 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFScatterChartData.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFScatterChartData.java b/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFScatterChartData.java index 65c795cdf2..7e27ff9e2d 100644 --- a/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFScatterChartData.java +++ b/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFScatterChartData.java @@ -202,6 +202,41 @@ public class XDDFScatterChartData extends XDDFChartData { } } + /** + * @since POI 4.1.2 + */ + public int getErrorBarsCount() { + return series.sizeOfErrBarsArray(); + } + + /** + * @since POI 4.1.2 + */ + public XDDFErrorBars getErrorBars(int index) { + return new XDDFErrorBars(series.getErrBarsArray(index)); + } + + /** + * @since POI 4.1.2 + */ + public XDDFErrorBars addNewErrorBars() { + return new XDDFErrorBars(series.addNewErrBars()); + } + + /** + * @since POI 4.1.2 + */ + public XDDFErrorBars insertNewErrorBars(int index) { + return new XDDFErrorBars(series.insertNewErrBars(index)); + } + + /** + * @since POI 4.1.2 + */ + public void removeErrorBars(int index) { + series.removeErrBars(index); + } + @Override public void setShowLeaderLines(boolean showLeaderLines) { if (!series.isSetDLbls()) { |