Function bar chart : update domains dynamically