yTick.setFormat(new LamiLabelFormat(checkNotNull(yMap)));
updateTickMark(checkNotNull(yMap), yTick, getChart().getPlotArea().getSize().y);
- /*
- * SWTChart workaround: SWTChart fiddles with tick mark visibility
- * based on the fact that it can parse the label to double or not.
- *
- * If the label happens to be a double, it checks for the presence
- * of that value in its own tick labels to decide if it should add
- * it or not. If it happens that the parsed value is already present
- * in its map, the tick gets a visibility of false.
- *
- * The X axis does not have this problem since SWTCHART checks on
- * label angle, and if it is != 0 simply does no logic regarding
- * visibility. So simply set a label angle of 1 to the axis.
- */
- yTick.setTickLabelAngle(1);
-
/* Remove horizontal grid line */
getChart().getAxisSet().getYAxis(0).getGrid().setStyle(LineStyle.NONE);
}
+ /*
+ * SWTChart workaround: SWTChart fiddles with tick mark visibility based
+ * on the fact that it can parse the label to double or not.
+ *
+ * If the label happens to be a double, it checks for the presence of
+ * that value in its own tick labels to decide if it should add it or
+ * not. If it happens that the parsed value is already present in its
+ * map, the tick gets a visibility of false.
+ *
+ * The X axis does not have this problem since SWTCHART checks on label
+ * angle, and if it is != 0 simply does no logic regarding visibility.
+ * So simply set a label angle of 1 to the axis.
+ */
+ yTick.setTickLabelAngle(1);
+
setLineSeriesColor();
/* Put log scale if necessary */