Mendel worked for several decades with pea plants in the garden of his monastery to produce an impressive body of data to support the gene theory, all of which was done decades before chromosomes were observed and understood.
Not all patterns of inheritance are as simple as Mendel's experiments, and there are degrees of dominance, multiple alleles, and single genes producing multiple phenotypes.