Multiple changes:

Defined type for either popular votes or percent
Plotted datapoints and labels based on type
Rendered the ref-line slope based on type
Removed custom axis and scale factor
Rendered legend position & label based on type