update flotchart component