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:
@@ -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);
|
||||||
|
@@ -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"
|
||||||
|
Reference in New Issue
Block a user