How to display copyright symbol in plotly dash?

Dear All,
Does anyone know how to display a copyright symbol (character c in a small circle) in plotly dash environment?
any reply is highly appreciated.
Tony

2 Likes

Hi Tony,

I think you want to display a copyright symbol in a plot?
I’ve done it like this:

 graph.update_layout(annotations=[
                             go.layout.Annotation(
                                 x=0.9,
                                 y=-0.2,
                                 showarrow=False,
                                 text=u"\u00A9"+"text",
                                 xref="paper",
                                 yref="paper"
                             )
                         ])

My only problem ist, that this delets the annotations of my facet, made with px.scatter.

Lukas

Try fig.add_annotation, documented Text And Annotations

For special characters, I usually just find the character online by googling “copyright UTF8” and then copy and paste it into the code editor. You may need the UTF declaration at the top of your code:

# -*- coding: utf-8 -*-

Thank you very much!
This works just fine.

Hi, @chriddyp,
thanks a lot. after I use the utf-8 of copyright symbol. it worked.
Tony

Hi, @lukas_albi,
thanks a lot. after using the utf-8 version of copyright. it worked.
Tony