The flourishcharts packages are provided by Canva as open source software under the MIT license(opens in a new tab or window).

Bind election results chart data

Usage

def bind_election_results_chart_data(
self,
values_now_name: str = None,
values_now_values: Union[list, str] = None,
values_historical_name: str = None,
values_historical_values: Union[list, str] = None
)
PYTHON
bind_election_results_chart_data(
.,
values_now_name = NULL,
values_now_values = NULL,
values_historical_name = NULL,
values_historical_values = NULL
)
R

Arguments

Arguments
Type hint
Description
self
Flourish
Returns the Flourish object
values_now_name
str, optional
Region name. The name of the data series (eg. voting district). Flourish type hint: column
values_now_values
Union[list, str], optional
Results by party. One column per party, with party names as header rows. Flourish type hint: columns
values_historical_name
str, optional
Region name. The name of the data series (eg. voting district). Flourish type hint: column
values_historical_values
Union[list, str], optional
Results by party. One column per party, with party names as header rows. Flourish type hint: columns
Arguments
Description
.
Returns the Flourish object
values_now_name
Region name. The name of the data series (eg. voting district). Flourish type hint: column
values_now_values
Results by party. One column per party, with party names as header rows. Flourish type hint: columns
values_historical_name
Region name. The name of the data series (eg. voting district). Flourish type hint: column
values_historical_values
Results by party. One column per party, with party names as header rows. Flourish type hint: columns