Custom colours for lineplot

Hi

I have a simple line plot by category and I want to change the colours from the defaults to custom
fig = px.line(df=reportdata, x=“month”, y=‘population’, color=‘country’)

Can I use a python dictionary to define colours for the categories in my data , in simple terms:
dict = {‘France’: blue, ‘Italy’:'green}

many thanks

Hi @michaelk welcome to the forum! Sure you several options here, see https://plot.ly/python/discrete-color/#directly-mapping-colors-to-data-values and the other examples of this page.

Hi @Emmanuelle and thanks for the welcome. Perfect solution - thanks a lot! Is there a reference url for all the colours I can use ? Best Regards Michael