Hello, to do this you can use the Total.total component. It should look something like this:
"
# adding
total total = Total.total(canvas=canvas, df=df, x_pos=720/2 + 720 - 50, y_pos=320, font_size=font_size*1.2, prefix="Portfolio Value: ", unit="$") canvas.add_sub_plot(total)
"
The df should contain the averages you want to display. Easiest is to prepare an Excel file with the values you want to display and load it into the DataHandler class and pass that dataframe into the Total.total component. Good luck!
Aussi comment ajouter le nom d'une légende à l'intérieur de la case?
Hello, to do this you can use the Total.total component. It should look something like this:
"
# adding
total total = Total.total(canvas=canvas, df=df, x_pos=720/2 + 720 - 50, y_pos=320, font_size=font_size*1.2, prefix="Portfolio Value: ", unit="$") canvas.add_sub_plot(total)
"
The df should contain the averages you want to display. Easiest is to prepare an Excel file with the values you want to display and load it into the DataHandler class and pass that dataframe into the Total.total component. Good luck!