]> source.dussan.org Git - poi.git/commitdiff
Implement error bars on scatter chart data series
authorAlain Béarez <abearez@apache.org>
Mon, 13 Jan 2020 00:27:03 +0000 (00:27 +0000)
committerAlain Béarez <abearez@apache.org>
Mon, 13 Jan 2020 00:27:03 +0000 (00:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872691 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFScatterChartData.java

index 65c795cdf2dc888efc495b96978d6bb8e037b0da..7e27ff9e2dbf785f20f0f77a7b515b30bc8f33f5 100644 (file)
@@ -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()) {