Hello! I was going suggest you affect the Format state on the component through an event handler, but, after looking around, I don't believe this is possible.
This related post may have an alternative idea that will work for you. Instead of conditionally changing the formatting, conditionally hide one Statistic component in favor of another.