public static boolean isChartByDistance(Context context){
  return CHART_X_AXIS_DEFAULT.equals(getString(context,R.string.chart_x_axis_key,CHART_X_AXIS_DEFAULT));
}

public static boolean isChartByDistance ( Context context ) { return CHART_X_AXIS_DEFAULT . equals ( getString ( context , R . string . chart_x_axis_key , CHART_X_AXIS_DEFAULT ) ) ; }
returns true if chart x axis is by distance , false if by time .
