Untitled

mail@pastecode.io avatar
unknown
python
a year ago
1.2 kB
31
Indexable
Never
html.Div(
    children=[
        html.Div(
            children=[
                dcc.DatePickerRange(
                    id="my-date-picker-range",
                    min_date_allowed=date(1995, 8, 8),
                    max_date_allowed=date(2023, 5, 6),
                    initial_visible_month=date(2017, 8, 5),
                    end_date=date(2017, 8, 25),
                    style={
                        "width": "300px",
                        "margin-left": "80px",
                        "margin-top": "0px",
                    },
                ),
            ],
            style={"display": "inline-block"},
        ),
        html.Div(
            children=[
                dcc.Dropdown(
                    options=[{"label": i, "value": i} for i in ticker_list],
                    id="demo-dropdown",
                    placeholder="Select a ticker",
                    style={
                        "width": "200px",
                        "margin-right": "20px",
                        "margin-top": "0px",
                    },
                ),
            ],
            style={"display": "inline-block", "margin-top": "0px",},
        ),
    ],
),