1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-06 16:56:55 +02:00

remove option to enable/disable y-axis otherwise graph auto scale won't work

This commit is contained in:
oliexdev
2019-05-12 22:00:16 +02:00
parent f2faf6717c
commit 530aef4fbd
2 changed files with 2 additions and 8 deletions

View File

@@ -147,8 +147,8 @@ public class ChartMeasurementView extends LineChart {
getLegend().setHorizontalAlignment(Legend.LegendHorizontalAlignment.CENTER); getLegend().setHorizontalAlignment(Legend.LegendHorizontalAlignment.CENTER);
getLegend().setTextColor(ColorUtil.getTextColor(getContext())); getLegend().setTextColor(ColorUtil.getTextColor(getContext()));
getDescription().setEnabled(false); getDescription().setEnabled(false);
getAxisLeft().setEnabled(prefs.getBoolean("yaxisEnable", false)); getAxisLeft().setEnabled(true);
getAxisRight().setEnabled(prefs.getBoolean("yaxisEnable", false)); getAxisRight().setEnabled(true);
getAxisLeft().setTextColor(ColorUtil.getTextColor(getContext())); getAxisLeft().setTextColor(ColorUtil.getTextColor(getContext()));
getAxisRight().setTextColor(ColorUtil.getTextColor(getContext())); getAxisRight().setTextColor(ColorUtil.getTextColor(getContext()));
getXAxis().setPosition(XAxis.XAxisPosition.BOTTOM); getXAxis().setPosition(XAxis.XAxisPosition.BOTTOM);

View File

@@ -6,12 +6,6 @@
android:summaryOff="@string/info_is_not_visible" android:summaryOff="@string/info_is_not_visible"
android:summaryOn="@string/info_is_visible" android:summaryOn="@string/info_is_visible"
android:title="@string/label_enable_legend" /> android:title="@string/label_enable_legend" />
<CheckBoxPreference
android:defaultValue="false"
android:key="yaxisEnable"
android:summaryOff="@string/info_is_not_visible"
android:summaryOn="@string/info_is_visible"
android:title="@string/label_enable_yaxis" />
<CheckBoxPreference <CheckBoxPreference
android:defaultValue="true" android:defaultValue="true"
android:key="labelsEnable" android:key="labelsEnable"