We present a new numerical model of star formation history and chemical evolution using the color-magnitude diagrams of resolved stars in galaxies. Our model differs from previous models in that it generates the simulated color-magnitude diagrams with the metal enrichment law calculated from the galactic chemical evolution model. We present a case of applying our model to a resolved galaxy in the Local Group: the Sextans dwarf spheroidal galaxy. It is found the the primary origin of the radial gradient of stellar population in this galaxy is star formation followed by metallicity.