If a card in your graveyard has {X} in its mana cost, X is considered to be 0 while you target it with Chandra’s last ability; however, once you begin to cast it, you choose a value for X. If this causes the mana value to become greater than 3, you can still cast the spell.