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

Bind line chart race data

Usage

def bind_horserace_data(
self,
horserace_name: str = None,
horserace_stages: Union[list, str] = None,
horserace_category: str = None,
horserace_pic: str = None,
horserace_filter: str = None,
captions_from: str = None,
captions_to: str = None,
captions_text: str = None,
captions_image: str = None
)
PYTHON
bind_horserace_data(
.,
horserace_name = NULL,
horserace_stages = NULL,
horserace_category = NULL,
horserace_pic = NULL,
horserace_filter = NULL,
captions_from = NULL,
captions_to = NULL,
captions_text = NULL,
captions_image = NULL
)
R

Arguments

Arguments
Type hint
Description
self
Flourish
Returns the Flourish object
horserace_name
str, optional
Label. The name of each entrant. Suggested data type hints: string. Flourish type hint: column
horserace_stages
Union[list, str], optional
Values. Raw scores, which will be automatically converted to ranks. Column names will be used to populate the X axis of the chart. Suggested data type hints: number. Flourish type hint: columns
horserace_category
str, optional
Color by. Select a column to color the lines by. If omitted, colors will be assigned per name. Suggested data type hints: string. Flourish type hint: column
horserace_pic
str, optional
Image. Add an image URL or right-click on a cell to upload an image. Suggested data type hints: string. Flourish type hint: column
horserace_filter
str, optional
Filter. Hide/show entrants based on the values in this column. Suggested data type hints: string, number, datetime. Flourish type hint: column
captions_from
str, optional
Stage to show. Must match the column headers in the main datasheet. Suggested data type hints: string. Flourish type hint: column
captions_to
str, optional
Stage to hide. Must match the column headers in the main datasheet. Suggested data type hints: string. Flourish type hint: column
captions_text
str, optional
Text. Text or HTML to show. Suggested data type hints: string. Flourish type hint: column
captions_image
str, optional
Image. Image to show. Suggested data type hints: string. Flourish type hint: column
Arguments
Description
.
Returns the Flourish object
horserace_name
Label. The name of each entrant. Suggested data type hints: string. Flourish type hint: column
horserace_stages
Values. Raw scores, which will be automatically converted to ranks. Column names will be used to populate the X axis of the chart. Suggested data type hints: number. Flourish type hint: columns
horserace_category
Color by. Select a column to color the lines by. If omitted, colors will be assigned per name. Suggested data type hints: string. Flourish type hint: column
horserace_pic
Image. Add an image URL or right-click on a cell to upload an image. Suggested data type hints: string. Flourish type hint: column
horserace_filter
Filter. Hide/show entrants based on the values in this column. Suggested data type hints: string, number, datetime. Flourish type hint: column
captions_from
Stage to show. Must match the column headers in the main datasheet. Suggested data type hints: string. Flourish type hint: column
captions_to
Stage to hide. Must match the column headers in the main datasheet. Suggested data type hints: string. Flourish type hint: column
captions_text
Text. Text or HTML to show. Suggested data type hints: string. Flourish type hint: column
captions_image
Image. Image to show. Suggested data type hints: string. Flourish type hint: column