- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.9k
 
Closed
Description
Similar to #2519 , in plotly/plotly.py#942 we're updating plotly.py's validation logic to automatically use the plotly.js schema.
Annotations allow numbers as text (https://codepen.io/chriddyp/pen/WzgxwK) and it's a pretty common use case in the Python library to directly pass data into the text field.
Could we add number to the valid types in the annotations schema? It's currently:
                                "text": {
                                    "valType": "string",
                                    "role": "info",
                                    "editType": "calc",
                                    "description": "Sets the text associated with this annotation. Plotly uses a subset of HTML tags to do things like newline (<br>), bold (<b></b>), italics (<i></i>), hyperlinks (<a href='...'></a>). Tags <em>, <sup>, <sub> <span> are also supported."
                                },
etpinard
Metadata
Metadata
Assignees
Labels
No labels