update setup data
use bar chart when record is one