Legion is based on a Justice League character.
The Justice League , also known as the Justice League of America ( JLA ) , is a fictional superhero team appearing in American comic books published by DC Comics . Legion is an American cable television series created for FX by Noah Hawley , based on the Marvel Comics character David Haller / Legion .