mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-03 10:53:49 +00:00
Reverted Y-Axis of the leaderboard charts for the gap and the windward distance
This commit is contained in:
1 parent
22d327651f
commit
c784b6ab38
1 file changed
+3
-1
+3
-1
@@ -138,9 +138,11 @@ implements CompetitorSelectionChangeListener, RaceSelectionChangeListener, TimeL
|
||||
chart.setChartTitle(new ChartTitle().setText(DetailTypeFormatter.format(dataToShow, stringMessages)));
|
||||
final String unit = getUnit();
|
||||
chart.getYAxis().setAxisTitleText(DetailTypeFormatter.format(dataToShow, stringMessages) + " ["+unit+"]");
|
||||
chart.getYAxis().setStartOnTick(false).setShowFirstLabel(false);
|
||||
chart.getYAxis().setReversed((dataToShow == DetailType.WINDWARD_DISTANCE_TO_OVERALL_LEADER ||
|
||||
dataToShow == DetailType.GAP_TO_LEADER_IN_SECONDS) ? true : false);
|
||||
chart.getXAxis().setType(Axis.Type.DATE_TIME).setMaxZoom(10000) // ten seconds
|
||||
.setAxisTitleText(stringMessages.time());
|
||||
chart.getYAxis().setStartOnTick(false).setShowFirstLabel(false);
|
||||
String decimalPlaces = "";
|
||||
for (int i = 0; i < dataToShow.getPrecision(); i++) {
|
||||
if (i == 0) {
|
||||
|
||||
Reference in new issue
Block a user