Two things need to line up for this: the Chao's alignment and its stats.
Alignment: raise it around Hero characters — Sonic, Tails, and Knuckles. Feeding it and petting it with them pushes the Chao toward the Hero side, which is what gives it the halo.
Running type: give it running-type animals and green Chaos Drives. Those are the items that build the Running stat, and the animal you use most heavily shapes the type it becomes.
Keep at it consistently and you'll end up with a Hero-aligned, running-focused Chao that does well in the dash and race events.