Several possibilities:
- Right Way: Create known-flat acoustic signal by playing pink noise (or white noise, or sweeps) through a carefully calibrated speaker system in an anechoic chamber; put the mic in front of it; hook it up through a carefully calibrated preamp and AD converter to a spectrum analyzer (or, if you use sweeps, you could use a VU meter, which is simpler in some ways but perhaps less accurate).
- More Cludgy Way: If your acoustic source (or post-mic path) isn't quite so perfect but you do have another mic with flat (or at least known) frequency response, put each of them in front of a pretty-flat speaker in a pretty-uncolored room, analyze both of them, then calculate the frequency response of the mic you're measuring using the known response of the other mic and the measured differences.
- Marketing Way: Just copy the chart from somewhere else.