Report - Change timeseries chart legend with script

Hi,

I create a report chart with pens below :

I have list of dictionnaries like [{'key':'value1','title':'my pen title'} , ...]
How can I dynamically put my pens' titles in the chart legend by script ?

Thanks

You'll need to adjust your pen names via the configureChart hook. I'd recommend searching the forum for example code to start from.

My chart is in a table row which depends on values in a dataset like below :
image
How can I get my legend variable in chart script ?