Local properties of graphs with large chromatic number