bind graph data to changes

Graph options will be save it in the model and the graph will be
updated when its date changes.