Hitler wasn't voted in. His party got a small minority of votes. He was appointed chancellor by the liberals and conservatives.
He was fought in the streets by the KPD, but the SPD and the aforementioned groups worked against them, choosing to make Hitler Chancellor in order to give him the power he needed to crack down on the KPD.
The holocaust wouldnt have happened if the spartacists hadn't been so naive.