How to Get a Rainbow
It seems to be random, as I know there's no "trick" to obtain a rainbow after the stage.
Maybe doing a large combo helps obtaining it, but there are no official evidences of this.
The only thing you can do is play you balloons over and over, you'll eventually get a rainbow sooner or later.