Skip to content

Commit

Permalink
Enables horizontal stacked charts
Browse files Browse the repository at this point in the history
  • Loading branch information
stockiNail committed Oct 18, 2022
1 parent 1640e0b commit d9e64e2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/org/pepstock/charba/client/configuration/StackedOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import org.pepstock.charba.client.IsChart;
import org.pepstock.charba.client.defaults.IsDefaultScaledOptions;
import org.pepstock.charba.client.enums.IndexAxis;

/**
* Configuration of chart which could be stacked.<br>
Expand Down Expand Up @@ -70,4 +71,22 @@ public Scales getScales() {
return scales;
}

/**
* Sets the base axis for the dataset.<br>
* Use {@link IndexAxis#Y} for horizontal bar.
*
* @param indexAxis the base axis for the dataset
*/
public void setIndexAxis(IndexAxis indexAxis) {
getConfiguration().setIndexAxis(indexAxis);
}

/**
* Returns the base axis for the dataset.
*
* @return the base axis for the dataset
*/
public IndexAxis getIndexAxis() {
return getConfiguration().getIndexAxis();
}
}

0 comments on commit d9e64e2

Please sign in to comment.