Binding additional data sources
Bind functionsBind audio dataBind bar chart race dataBind bubble chart dataBind calculator dataBind cards dataBind chord diagram dataBind draw the line chart dataBind election results chart dataBind gantt chart dataBind gauge dataBind hierarchy dataBind line chart race dataBind interactive svg dataBind line, bar and pie charts dataBind marimekko dataBind network graph dataBind parliament chart dataBind pictogram dataBind quiz dataBind radar chart dataBind sankey diagram dataBind scatter dataBind slope chart dataBind sports dataBind sports race dataBind survey dataBind svg annotator dataBind table dataBind text annotator dataBind timeline dataBind tournament dataBind word cloud data
Bind tournament data
Usage
def bind_tournament_data(self,round: str = None,team_a: str = None,team_b: str = None,winner: str = None,score_a: str = None,score_b: str = None,metadata: Union[list, str] = None,id: str = None,image: str = None)
PYTHON
bind_tournament_data(.,round = NULL,team_a = NULL,team_b = NULL,winner = NULL,score_a = NULL,score_b = NULL,metadata = NULL,id = NULL,image = NULL)
R
Arguments
Arguments | Type hint | Description |
---|---|---|
self | Flourish | Returns the Flourish object |
round | str , optional | Stage. The stage of the tournament, for example "Round of 16" or "Semifinals". Flourish type hint: column |
team_a | str , optional | Participant A. The first participant or team in this match. Flourish type hint: column |
team_b | str , optional | Participant B. The second participant or team in this match. Flourish type hint: column |
winner | str , optional | Winner. The winning participant or team in this match. Must match the name of either Participant A or Participant B. If left blank, the template will assume that the match is upcoming. Flourish type hint: column |
score_a | str , optional | Participant A score. The score of Participant A in this match. Will appear along with the participants name in the box. Suggested data type hints: string, number. Flourish type hint: column |
score_b | str , optional | Participant B score. The score of Participant B in this match. Will appear along with the participants name in the box. Suggested data type hints: string, number. Flourish type hint: column |
metadata | Union[list, str] , optional | Info 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 |
id | str , optional | ID. Participant ID. Should match a participants name from the Matches sheet. Flourish type hint: column |
image | str , optional | Image. Image to render in the participant box. Add an image URL or right-click on a cell to upload an image. Flourish type hint: column |
Arguments | Description |
---|---|
. | Returns the Flourish object |
round | Stage. The stage of the tournament, for example "Round of 16" or "Semifinals". Flourish type hint: column |
team_a | Participant A. The first participant or team in this match. Flourish type hint: column |
team_b | Participant B. The second participant or team in this match. Flourish type hint: column |
winner | Winner. The winning participant or team in this match. Must match the name of either Participant A or Participant B. If left blank, the template will assume that the match is upcoming. Flourish type hint: column |
score_a | Participant A score. The score of Participant A in this match. Will appear along with the participants name in the box. Suggested data type hints: string, number. Flourish type hint: column |
score_b | Participant B score. The score of Participant B in this match. Will appear along with the participants name in the box. Suggested data type hints: string, number. Flourish type hint: column |
metadata | Info 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 |
id | ID. Participant ID. Should match a participants name from the Matches sheet. Flourish type hint: column |
image | Image. Image to render in the participant box. Add an image URL or right-click on a cell to upload an image. Flourish type hint: column |