update chart,when SPECTRAL_WAVELENGTH changes