Skip to content

Commit

Permalink
Merge pull request #13 from simonspdb/master
Browse files Browse the repository at this point in the history
Added: Feature - Scale -> Ticks -> beginAtZero
  • Loading branch information
rudiejd authored Dec 11, 2023
2 parents 8dd104b + 7181c06 commit 43edfea
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class Ticks<T> extends And<T> implements JsonBuilder {
private static final long serialVersionUID = -4740687096401461147L;

private Boolean autoSkip;
private Boolean beginAtZero;
private Boolean display;
private String fontColor;
private String fontFamily;
Expand All @@ -42,6 +43,12 @@ public Ticks<T> autoSkip(boolean autoSkip) {
return this;
}

/** If true, scale starts at 0. */
public Ticks<T> beginAtZero(boolean beginAtZero) {
this.beginAtZero = beginAtZero;
return this;
}

/** If true, show the ticks. */
public Ticks<T> display(boolean display) {
this.display = display;
Expand Down Expand Up @@ -155,6 +162,7 @@ public JsonObject buildJson() {
JsonObject map = Json.createObject();
JUtils.putNotNull(map, "display", display);
JUtils.putNotNull(map, "autoSkip", autoSkip);
JUtils.putNotNull(map, "beginAtZero", beginAtZero);
JUtils.putNotNull(map, "fontColor", fontColor);
JUtils.putNotNull(map, "fontFamily", fontFamily);
JUtils.putNotNull(map, "fontSize", fontSize);
Expand Down

0 comments on commit 43edfea

Please sign in to comment.