def bind_sports_data(
self,
info: Union[list, str] = None,
color: str = None,
size: str = None,
squad_number: str = None,
position_x: str = None,
position_y: str = None,
filter: str = None,
photo: str = None,
metadata: Union[list, str] = None
)
python
ArgumentsType hintDescription
selfFlourishReturns the Flourish object
infoUnion[list, str], optionalName. A name to include on a label and/or popup. Suggested data type hints: string, number. Flourish type hint: columns
colorstr, optionalColor by. An optional category column to color the dots by. For example if you have two different teams. Suggested data type hints: string. Flourish type hint: column
sizestr, optionalSize by. An optional numeric column to size the dots. Suggested data type hints: number. Flourish type hint: column
squad_numberstr, optionalSquad numbers. An optional squad number to appear within the dot. Suggested data type hints: number, string. Flourish type hint: column
position_xstr, optionalX position. Use this to column to set the X position of a dot on the pitch when creating shot charts. This column is ignored when the setting Position points by is set to FormationSuggested data type hints: number. Flourish type hint: column
position_ystr, optionalY position. Use this to column to set the Y position of a dot on the pitch when creating shot charts. This column is ignored when the setting Position points by is set to FormationSuggested data type hints: number. Flourish type hint: column
filterstr, optionalFilter by. Setting a column here will add a control to the visualization to filter the dots. For example you could filter by team. Suggested data type hints: string, number. Flourish type hint: column
photostr, optionalImage. Add an image to appear in the circles. To add an image, right click on a cell and click upload file Its also possible to add a image URL. Suggested data type hints: string. Flourish type hint: column
metadataUnion[list, str], optionalInfo for popups. One or more columns of information (text, image URLs, embedded charts etc) to include in popups and panels Suggested data type hints: string, number, datetime. Flourish type hint: columns