Global

Members

(constant) getUserDatas

Source:

Get all the user datas we need for all our components

Methods

createUrl(base, path)

Source:

Function to create the url to fetch, who check if datas are mocked and add .json if needed

Parameters:
Name Type Description
base string

First part of API adress ("" for mocked datas)

path string

Path of the desired end-point of the API

CustomizedLegend(payload)

Source:

Format the legend who appears on center on the Circle Chart

Parameters:
Name Type Description
payload

datas we need to take to show informations on the legend

CustomizedToolTip(active, payload)

Source:

Format the box who appears on hover on the Bar Chart

Parameters:
Name Type Description
active

true if the box appears

payload

datas we need to take to show informations on the tooltip

CustomizedTooltip(payload)

Source:

Format the box who appears on center on the Circle Chart

Parameters:
Name Type Description
payload

datas we need to take to show informations on the tooltip

getApiDatas(url)

Source:

Function to fetch datas, and return response in json format

Parameters:
Name Type Description
url string

Path of the desired end-point of the API