From 1ee1b35c848b3dd66c3a95547604a3f816346626 Mon Sep 17 00:00:00 2001 From: Temitayo Date: Sun, 31 Mar 2019 20:28:56 -0400 Subject: [PATCH] Add GridLines options for YAxis Added GridLines options for YAxis --- .../be/ceau/chart/options/scales/YAxis.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/main/java/be/ceau/chart/options/scales/YAxis.java b/src/main/java/be/ceau/chart/options/scales/YAxis.java index ed8ae9e..a0bb957 100755 --- a/src/main/java/be/ceau/chart/options/scales/YAxis.java +++ b/src/main/java/be/ceau/chart/options/scales/YAxis.java @@ -58,6 +58,14 @@ public class YAxis> { * @see #setStacked(Boolean stacked) */ private Boolean stacked; + + + /** + * Default {@code offsetGridLines == true} + * + * @see #setGridLines(GridLines gridLines) + */ + private GridLines gridLines; /** * @see #setTicks(Ticks) @@ -133,5 +141,23 @@ public YAxis setStacked(Boolean stacked) { this.stacked = stacked; return this; } + + + /** + * @see #setGridLines(GridLines gridLines) + */ + public GridLines getGridLines() { + return this.gridLines; + } + + /** + * If true, the bars for a particular data point fall between the grid lines. The grid line will + * move to the left by one half of the tick interval. If false, the grid line will go right down the + * middle of the bars. + */ + public YAxis setGridLines(GridLines gridLines) { + this.gridLines = gridLines; + return this; + } }