separated chart options from data api