add graph by range