A novel and efficient method for chirping fiber grating is demonstrated. The fiber Bragg grating was attached slantwis on a side face of a flexible beam. When the beam is bending, a strain gradient formed along the grating produces a variable shift in the Bragg spacing, resulting in a chirp up to 11.32nm nearly without central wavelength shift.