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

Bind line, bar and pie charts data

Usage

def bind_line_bar_pie_data(
self,
label: str = None,
value: Union[list, str] = None,
facet: str = None,
filter: str = None,
metadata: Union[list, str] = None
)
PYTHON
bind_line_bar_pie_data(
.,
label = NULL,
value = NULL,
facet = NULL,
filter = NULL,
metadata = NULL
)
R

Arguments

Arguments
Type hint
Description
self
Flourish
Returns the Flourish object
label
str, optional
Labels/time. A column of names, numbers or datetimes. Suggested data type hints: string, datetime, number. Flourish type hint: column
value
Union[list, str], optional
Values. One or more columns of numbers. The Preferred output format of the first column is used to format values. Suggested data type hints: number. Flourish type hint: columns
facet
str, optional
Charts grid. If specified and Grid of charts view is on, creates a separate mini chart for each value found in the column. Suggested data type hints: string. Flourish type hint: column
filter
str, optional
Row filter. Use this column to create a user-facing row control. To create a column filter, use the Series filter option in the settings panel instead. Suggested data type hints: string, datetime, number. Flourish type hint: column
metadata
Union[list, str], optional
Info for custom popups. One or more columns of information (text, image URLs , embedded charts etc) to include in custom popups and panels Suggested data type hints: string, datetime, number. Flourish type hint: columns
Arguments
Description
.
Returns the Flourish object
label
Labels/time. A column of names, numbers or datetimes. Suggested data type hints: string, datetime, number. Flourish type hint: column
value
Values. One or more columns of numbers. The Preferred output format of the first column is used to format values. Suggested data type hints: number. Flourish type hint: columns
facet
Charts grid. If specified and Grid of charts view is on, creates a separate mini chart for each value found in the column. Suggested data type hints: string. Flourish type hint: column
filter
Row filter. Use this column to create a user-facing row control. To create a column filter, use the Series filter option in the settings panel instead. Suggested data type hints: string, datetime, number. Flourish type hint: column
metadata
Info for custom popups. One or more columns of information (text, image URLs , embedded charts etc) to include in custom popups and panels Suggested data type hints: string, datetime, number. Flourish type hint: columns