[Solved] How to set layout of rangeslider and autoscale to subplot

I tried to add layout to my subplot, and it raises the following error message. I think I did something wrong about rangeslider and autoscale. Adding height and title is okay.

ValueError: Invalid property specified for object of type plotly.graph_objs.layout.XAxis: ‘autoscale’

Valid properties:
    anchor
        If set to an opposite-letter axis id (e.g. `x2`, `y`),
        this axis is bound to the corresponding opposite-letter
        axis. If set to "free", this axis' position is
        determined by `position`...

Solution:
fig[‘layout’][‘xaxis’].update(rangeslider=dict(visible=False), autorange=True, type=“category”, nticks=5)

It is called autorange…not autoscale in this case.