fix a bug when switch view to TextView, add ruler view support to GraphView