Skip to content
Snippets Groups Projects
Commit 12cb5eea authored by Tim Molter's avatar Tim Molter
Browse files

prevent setting x min and max for bar charts

parent d1111e59
Branches
No related tags found
No related merge requests found
......@@ -73,13 +73,13 @@ public abstract class AxisTickCalculator {
}
// override min and maxValue if specified
if (axisDirection == Direction.X && styleManager.getXAxisMin() != null) {
if (axisDirection == Direction.X && styleManager.getXAxisMin() != null && styleManager.getChartType() != ChartType.Bar) {
overrideMinValue = styleManager.getXAxisMin();
}
if (axisDirection == Direction.Y && styleManager.getYAxisMin() != null) {
overrideMinValue = styleManager.getYAxisMin();
}
if (axisDirection == Direction.X && styleManager.getXAxisMax() != null) {
if (axisDirection == Direction.X && styleManager.getXAxisMax() != null && styleManager.getChartType() != ChartType.Bar) {
overrideMaxValue = styleManager.getXAxisMax();
}
if (axisDirection == Direction.Y && styleManager.getYAxisMax() != null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment