The Chandra 3C snapshot survey for sources with z<0.3