Increased chart description font size

This commit is contained in:
Graham Jones
2024-01-13 20:50:49 +00:00
parent 0cf40b9d21
commit 99b925cbd6
2 changed files with 7 additions and 1 deletions

View File

@@ -70,6 +70,7 @@ public class FragmentHrAlg extends FragmentOsdBaseClass {
public void onResume() {
super.onResume();
mLineChart = mRootView.findViewById(R.id.lineChart);
mLineChart.getLegend().setEnabled(false);
XAxis xAxis = mLineChart.getXAxis();
xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);
xAxis.setTextSize(10f);
@@ -154,7 +155,10 @@ public class FragmentHrAlg extends FragmentOsdBaseClass {
mLineChart.notifyDataSetChanged();
mLineChart.refreshDrawableState();
float xSpan = (nHistArr * 5.0f)/60.0f; // time in minutes assuming one point every 5 seconds.
mLineChart.setDescription("Heart Ratee History - "+String.format("%.1f", xSpan)+" minutes");
mLineChart.setDescription(getString(R.string.heart_rate_history_bpm)
+ String.format("%.1f", xSpan)
+ " " + getString(R.string.minutes));
mLineChart.setDescriptionTextSize(12f);
mLineChart.invalidate();
//if (mConnection.mBound){
// lineChart.postInvalidate();

View File

@@ -563,4 +563,6 @@
<string name="use_new_ui_summary">Use new swipeable user interface</string>
<string name="use_new_ui_title">Use New User Interface</string>
<string name="heart_rate_algorithm">Heart Rate Algorithm</string>
<string name="heart_rate_history_bpm">"Heart Rate History (bpm): "</string>
<string name="minutes">minutes</string>
</resources>