fix graph options and graph data