refactoring and code to draw current values in chart view
only display three significant digits in heart-rate values