Charging your energy in Dragon Ball Z Budokai 3 is all about timing your directional inputs while holding the charge button.
Press and hold X, then double-tap the left or right direction while still holding X.
If your enemy is on the left, hold X and double-tap the right direction.
If your enemy is on the right, hold X and double-tap the left direction.
Follow these steps and you'll be able to power up effectively during battle.