✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Dcc.rangeslider marks gets squished at 100% and when zoomed

Dear Programmers,

I am working on a large dataset with dcc.rangeslider as the data range picker, however when there are many data to be picked, dcc.rangeslider gets squished.

At 100%

When page is Zoomed > 100%

I have tried adding ‘overflowX’:‘scroll’ but to no avail. Below is the snippet of my code.

The idea is for the slider to overflow when there are a lot of data and not to get squished. Appreciate if anyone can help me.

Hi Guys,

Probably should have done this earlier, I have added the code in text format below.

html.Div([
        html.Div([
        dcc.RangeSlider(
        id='my-range-slider',
        min=0,
        max=len(df_volpanalysis.columns)-1,
        step=None,
        value=[0,1],
        allowCross=False,
        marks= {(i):{'label':str(df_volpanalysis.columns[i]),
                        'style':{'color':'blue','border':'0px solid','writing-mode': 'vertical-rl','display':'flex','align-items':'center','justify-content':'center'}
                        }for i in range(len(df_volpanalysis.columns))}
    )],style={'padding-bottom':0,'padding-left':10,'padding-right':10,'overflowX':'scroll','white-space':'nowrap','display':'inline-block','resize':'vertical'},className="twelve columns"),

Any help is appreciated. Thanks