'cliponaxis' property of scatter

Hi All,
New to DASH & Python, so hoping someone can explain this error message & guide me in the right direction?
Getting below error when I’m adding secondary Y-AXIS to my graph.

ValueError:
Invalid value of type ‘builtins.dict’ received for the ‘cliponaxis’ property of scatter
Received value: {‘x’: 0 2018-08-19
1 2018-08-20
2 2018-08-21
3 2018-08-22
4 2018-08-23
5 2018-10-18
6 2018-10-19
7 2018-10-20
8 2018-10-21
9 2018-10-22

141 2019-03-04
142 2019-03-05
143 2019-03-06
144 2019-03-07
145 2019-03-08
146 2019-03-09
147 2019-03-10
148 2019-03-11
149 2019-03-12
Name: dateid, Length: 150, dtype: object, ‘y’: 0 145.0
1 235.0
2 186.0
3 198.0
4 60.0
5 135.0
6 357.0
7 317.0
8 237.0
9 330.0

141 295.0
142 343.0
143 317.0
144 286.0
145 306.0
146 293.0
147 240.0
148 367.0
149 350.0
Name: rrcconnreestabfails, Length: 150, dtype: float64, ‘name’: ‘RrcConnReestabFails’, ‘type’: ‘markers’, ‘yaxis’: ‘y2’}

The 'cliponaxis' property must be specified as a bool
(either True, or False)

Traceback (most recent call last)

File "c:\Users\pankachu\Documents\Mine\Learning\Python\2019\Dash\201909\Graph\2019Graph2Axis.py", line 66, in update_fig

'yaxis': 'y2'

File "C:\ProgramData\Anaconda3\lib\site-packages\plotly\graph_objs\__init__.py", line 39591, in __init__

self["cliponaxis"] = cliponaxis if cliponaxis is not None else _v

File "C:\ProgramData\Anaconda3\lib\site-packages\plotly\basedatatypes.py", line 3353, in __setitem__

self._set_prop(prop, value)

File "C:\ProgramData\Anaconda3\lib\site-packages\plotly\basedatatypes.py", line 3636, in _set_prop

raise err

File "C:\ProgramData\Anaconda3\lib\site-packages\plotly\basedatatypes.py", line 3631, in _set_prop

val = validator.validate_coerce(val)

File "C:\ProgramData\Anaconda3\lib\site-packages\_plotly_utils\basevalidators.py", line 626, in validate_coerce

self.raise_invalid_val(v)

File "C:\ProgramData\Anaconda3\lib\site-packages\_plotly_utils\basevalidators.py", line 283, in raise_invalid_val

valid_clr_desc=self.description(),

ValueError: Invalid value of type 'builtins.dict' received for the 'cliponaxis' property of scatter Received value: {'x': 0 2018-08-19 1 2018-08-20 2 2018-08-21 3 2018-08-22 4 2018-08-23 5 2018-10-18 6 2018-10-19 7 2018-10-20 8 2018-10-21 9 2018-10-22 10 2018-10-23 11 2018-10-24 12 2018-10-25 13 2018-10-26 14 2018-10-27 15 2018-10-28 16 2018-10-29 17 2018-10-30 18 2018-10-31 19 2018-11-01 20 2018-11-02 21 2018-11-03 22 2018-11-04 23 2018-11-05 24 2018-11-06 25 2018-11-07 26 2018-11-08 27 2018-11-09 28 2018-11-10 29 2018-11-11 ... 120 2019-02-10 121 2019-02-11 122 2019-02-12 123 2019-02-13 124 2019-02-14 125 2019-02-15 126 2019-02-16 127 2019-02-17 128 2019-02-18 129 2019-02-19 130 2019-02-20 131 2019-02-21 132 2019-02-22 133 2019-02-23 134 2019-02-25 135 2019-02-26 136 2019-02-27 137 2019-02-28 138 2019-03-01 139 2019-03-02 140 2019-03-03 141 2019-03-04 142 2019-03-05 143 2019-03-06 144 2019-03-07 145 2019-03-08 146 2019-03-09 147 2019-03-10 148 2019-03-11 149 2019-03-12 Name: dateid, Length: 150, dtype: object, 'y': 0 145.0 1 235.0 2 186.0 3 198.0 4 60.0 5 135.0 6 357.0 7 317.0 8 237.0 9 330.0 10 312.0 11 310.0 12 369.0 13 346.0 14 325.0 15 263.0 16 296.0 17 348.0 18 342.0 19 216.0 20 258.0 21 272.0 22 258.0 23 352.0 24 296.0 25 418.0 26 375.0 27 299.0 28 348.0 29 237.0 ... 120 223.0 121 328.0 122 324.0 123 286.0 124 384.0 125 288.0 126 307.0 127 286.0 128 292.0 129 326.0 130 272.0 131 347.0 132 380.0 133 337.0 134 313.0 135 324.0 136 284.0 137 353.0 138 330.0 139 294.0 140 249.0 141 295.0 142 343.0 143 317.0 144 286.0 145 306.0 146 293.0 147 240.0 148 367.0 149 350.0 Name: rrcconnreestabfails, Length: 150, dtype: float64, 'name': 'RrcConnReestabFails', 'type': 'markers', 'yaxis': 'y2'} The 'cliponaxis' property must be specified as a bool (either True, or False)

Traceback (most recent call last):
File “c:\Users\pankachu\Documents\Mine\Learning\Python\2019\Dash\201909\Graph\2019Graph2Axis.py”, line 66, in update_fig
‘yaxis’: ‘y2’
File “C:\ProgramData\Anaconda3\lib\site-packages\plotly\graph_objs_init_.py”, line 39591, in init
self[“cliponaxis”] = cliponaxis if cliponaxis is not None else _v
File “C:\ProgramData\Anaconda3\lib\site-packages\plotly\basedatatypes.py”, line 3353, in setitem
self._set_prop(prop, value)
File “C:\ProgramData\Anaconda3\lib\site-packages\plotly\basedatatypes.py”, line 3636, in _set_prop
raise err
File “C:\ProgramData\Anaconda3\lib\site-packages\plotly\basedatatypes.py”, line 3631, in _set_prop
val = validator.validate_coerce(val)
File “C:\ProgramData\Anaconda3\lib\site-packages_plotly_utils\basevalidators.py”, line 626, in validate_coerce
self.raise_invalid_val(v)
File “C:\ProgramData\Anaconda3\lib\site-packages_plotly_utils\basevalidators.py”, line 283, in raise_invalid_val
valid_clr_desc=self.description(),
ValueError:
Invalid value of type ‘builtins.dict’ received for the ‘cliponaxis’ property of scatter
Received value: {‘x’: 0 2018-08-19
1 2018-08-20
2 2018-08-21
3 2018-08-22
4 2018-08-23
5 2018-10-18
6 2018-10-19
7 2018-10-20
8 2018-10-21
9 2018-10-22

141 2019-03-04
142 2019-03-05
143 2019-03-06
144 2019-03-07
145 2019-03-08
146 2019-03-09
147 2019-03-10
148 2019-03-11
149 2019-03-12
Name: dateid, Length: 150, dtype: object, ‘y’: 0 145.0
1 235.0
2 186.0
3 198.0
4 60.0
5 135.0
6 357.0
7 317.0
8 237.0
9 330.0

141 295.0
142 343.0
143 317.0
144 286.0
145 306.0
146 293.0
147 240.0
148 367.0
149 350.0
Name: rrcconnreestabfails, Length: 150, dtype: float64, ‘name’: ‘RrcConnReestabFails’, ‘type’: ‘markers’, ‘yaxis’: ‘y2’}

The 'cliponaxis' property must be specified as a bool
(either True, or False)

Below is my code

import dash
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objs as go
from dash.dependencies import Input, Output
import psycopg2 as pg
import pandas as pd
from psycopg2 import sql
from datetime import datetime, timedelta

conn = pg.connect(database='A', user='B', password='C', host='localhost')

Date = datetime.today() - timedelta(days=400)

Qry4Cells = "SELECT  cellname from dailymain WHERE dateid >= (%s) ORDER BY cellname"
Connection = "SELECT dateid, cellname, coalesce(sum(Nom)/nullif(sum(Denom),0)*100,0) as succ, sum(Denom)-sum(Nom) as Fails FROM dailymain WHERE dateid >= (%s) AND cellname = (%s) GROUP BY cellname, dateid ORDER BY cellname, dateid"

df1 = pd.read_sql_query(Qry4Cells,params={Date},con=conn)
celloptions = df1['cellname'].unique()

app = dash.Dash()

app.layout = html.Div(children=[
    html.H1(children = 'Connection'),

    dcc.Dropdown(
        id='dropdown',
        options=[{'label': i, 'value': i} for i in celloptions],
        value='01iL006-2',
        clearable=False,
        style={
            'width': '30%',
            'display': 'inline-block',
        }
    ),
    dcc.Graph(
        id = 'G1',
        config = {"displaylogo": False},
    ),
])

@app.callback(
    dash.dependencies.Output('G1','figure'),
    [dash.dependencies.Input('dropdown','value')])

def update_fig(dropdown):
    df = pd.read_sql_query(Connection,params=(Date,dropdown),con=conn)

    data = []
    ConnectionGraph = go.Scatter(
        {
            'x': df['dateid'],
            'y': df['succ'],
            'name': 'SuccRate',
            'type': 'markers',
            'yaxis': 'y1'
        },
        {
            'x':df['dateid'],
            'y':df['fails'],
            'name':'Fails',
            'type': 'markers',
            'yaxis': 'y2'
        },
    )

    data.append(RrcReEstabGraph)

    layout = {
            'title':'Mera Graph',
            'xaxis': {'autotick': 'False', 'tickformat': '%_d%b%y', 'tickmode': 'auto'},
            'yaxis2': {'side': 'right', 'overlaying': 'y1'},
    }
    return{
        "data":data,
        "layout":layout
    }
        

if __name__ == '__main__':
    app.run_server(debug = True)