Adding ranges for graph