(a) Chemical RGB phase map for Li-ion battery electrode sample R1 (red = NiO, green = Ni, blue = mixed states); (b), (c) XANES from two arbitrarily selected pixels with linear combination fit result, residual and quality of fit R-factor. (b) XANES showing 80% NiO, 20% Ni. (c) XANES showing 19% NiO and 81% Ni. (d) XANES for NiO and Ni standards: normalized absorption versus achieved energy for pristine electrode (pure NiO) and reduced electrode R2 (pure Ni).