legend + doc viewer