election_day.views.election.candidate_entity

Module Contents

Functions

candidate_options(→ list[tuple[str, str]])

view_candidate_by_entity(→ onegov.core.types.JSON_ro)

" View the candidate by entity as JSON.

view_election_candidate_by_entity(...)

" View the candidate as heatmap by entity.

view_election_candidate_by_entity_chart(...)

" Embed the heatmap.

election_day.views.election.candidate_entity.candidate_options(request: onegov.election_day.request.ElectionDayRequest, election: onegov.ballot.Election) list[tuple[str, str]][source]
election_day.views.election.candidate_entity.view_candidate_by_entity(self: onegov.ballot.Candidate, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.JSON_ro[source]

“ View the candidate by entity as JSON.

election_day.views.election.candidate_entity.view_election_candidate_by_entity(self: onegov.ballot.Election, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.RenderData[source]

“ View the candidate as heatmap by entity.

election_day.views.election.candidate_entity.view_election_candidate_by_entity_chart(self: onegov.ballot.Election, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.RenderData[source]

“ Embed the heatmap.