86 questions
0
votes
1
answer
49
views
Bootstrap dbc.Input debounce not working when set to a number
The dbc.Input debounce paramenter works for me when set to True but it does not work for a number like 2. Tried in Fedora 43 with both Firefox and Chromium. It works with dcc.Input
from dash import ...
0
votes
0
answers
80
views
Apply dash-bootstrap theme to dcc components
I want the dash.dcc.Dropdown to look like the dbc.DropdownMenu in the bootstrap site:
This is my sample code:
# -*- coding: utf-8 -*-
from dash import Dash, dcc, html
import dash_bootstrap_components ...
-1
votes
1
answer
56
views
Plotly Dash dbc column width
In a Plotly Dash application I'm trying to use the horizontal space optimaly.
There are four columns in the first row. Right now this is what I have:
from dash import Dash, dcc, html, Input, Output, ...
5
votes
1
answer
83
views
DateTimePicker doesn't work withDropdown while inside modal
I have a large application that is written in Dash with Dash Bootstrap Components (dbc). The problem is that dbc only has datepickers not datetimepickers, so I looked to Dash Mantine Components (dmc) ...
0
votes
0
answers
19
views
Dash/Plotly Layout graph closely knit together
I am testing this Dash/Plotly Layout that has 4 graphs and needed them closely knit together but can't seem to get it work. It looks to me Plotly graphs add lots of spaces around the graph creating ...
0
votes
0
answers
85
views
Dash pattern-matching callback issue
I am working on a dash app where that will have a dash bootstrap component AccordionItems dynamically created.
When I click the search-trigger button, the dialog box is opened and a query to a ...
0
votes
1
answer
231
views
Layout gaps dash dbc components
I am trying to build a dashboard. The problem is even if I specify className="g-0" and justify="start". My elements are spread out across the screen with huge gaps. I need them to ...
0
votes
1
answer
359
views
Import dash_bootstrap_components doesn’t work
Issue: I pip3.8 installed dash_bootstrap_components and Import dash_bootstrap_components doesn’t work. How can I fix my error ?
this is what I have:
# Creates the interactive dashboard using the ...
-1
votes
1
answer
63
views
Plotly graphs not showing in dbc.Container. 1 Error on the app with no content in it
I have a dbc.Container in an app showing various cards with basic data. But I want to replace them with Gauge Charts as the cards look clunky and i feel like the gauge charts would do a better job.
...
1
vote
1
answer
280
views
Justify text within dbc card - plotly dash
I can't seem to move the alignment of text within a dbc card. Using below, I want to move 100 in card 2 down. I'm trying everything to move it up or down but nothing seems to work. I have certain card ...
0
votes
1
answer
326
views
How to make dcc.Graph in plotly dash, twice as high as other graphs in the row using dash-bootstrap-component layout
I want my graphs to look like this:
But with the code below, I get this.
It is similar to the question here, but I cannot seem to make that solution (of adding style="display":"inline-...
2
votes
1
answer
4k
views
Dash multi-page app using DBC navigation bar
I'm trying to replicate "multi_page_example1" from https://github.com/AnnMarieW/dash-multi-page-app-demos/tree/main. This uses a drop-down menu to navigate to different pages.
However, I ...
0
votes
1
answer
973
views
dcc.Tabs not being styled using a dbc theme in external_stylesheets
If I recreate the dash-core-components Tabs example and apply a stylesheet, my tabs (and plot area) don't seem to be taking the formatting.
from dash import Dash, dcc, html, Input, Output, callback
...
1
vote
1
answer
847
views
Dash bootstrap components layout creation
I want to create a layout for a dashboard using dash_bootstrap_components that looks like this:
+---+---+---+
| | 2 | 3 |
| 1 |---+---+
| | 4 |
+---+-------+
Is this possible? Can someone ...
0
votes
0
answers
197
views
Change bootstrap theme using python
I hope you are having a good day.
I'm trying in the Python code snippet below to change the theme while the app running. Is there a way to assign the theme to external_stylesheets argument?
Is there a ...
0
votes
1
answer
266
views
Plotly graph not rendering on the side of other widgets: dash_bootstrap_components Row appears identical to Col
I'm building a data explorer using dash, plotly, and dash bootstrap components. I would like a layout for my data to look something like:
desired graph layout
However, using dbc to slowly build up the ...
1
vote
1
answer
2k
views
Configure app layout when adjusting screen size - dash
I've tried to set the max height/width on dbc components within an app but when adjusting the screen size, the layout changes. Is there a way to make the layout more flexible to ensure the same ...
2
votes
1
answer
3k
views
Increase space between text and icon in dash checklist
I can adjust the margin and padding around/between various dcc components. But I'm aiming to increase the space within these functions. I have a Checklist and RadioItems below. I want to increase the ...
0
votes
1
answer
726
views
Python Dash - Create multiple elements through for loop
Let's say I have 10 records on my database and I want to render all of them in my Dash web app, is there a way where I can render all of them through a for loop? I've tried creating a function that ...
0
votes
1
answer
90
views
Toggle between different density maps using HTML
I've got two separate figures that use callbacks to filter spatial coordinates. The figures contain a scatter plot and a heat map. Is it possible to incorporate both within a single figure, but use ...
0
votes
1
answer
376
views
Plot bar chart with separate color legend - dash Plotly
I'm trying to plot certain values using dash as a bar chart but use a separate column to map the colors. Using below, I'm plotting dates as a bar-chart that corresponds to a drop down bar.
Is it ...
2
votes
2
answers
595
views
Set specific colour map to Bar-chart with callback - dash Plotly
I've got an interactive bar chart that displays counts from days of the week. I'm trying to set the color map so each day of the week maintains the same color. At the moment, if I remove any days, the ...
1
vote
1
answer
307
views
Include multiple bar charts with callback interaction - dash
I'm aiming to plot multiple graphs in a dbc.Container that can be manipulated with various filtering controls. The following app layout includes a DatePickerRange for dates, Dropdown for days of the ...
0
votes
1
answer
136
views
Callback error with barchart - Plotly dash
I'm trying to insert an interactive bar-chart using values in a df. Using below, I've got the unique values from Type displayed as RadioItems. I'm aiming to link these to a bar chart within the dbc....
0
votes
1
answer
1k
views
Display interactive metrics within dbc.Card - Dash
I'm aiming to include interactive counts as metrics. Specifically, insert total sums within cards that will changed depending on the variable selected from a nav bar.
Using below, the Navbar is used ...
1
vote
0
answers
174
views
Dash model with separate button callbacks
In Python I am working with Dash and Dash bootstrap components. I am having trouble with the bootstrap Modal component. My most basic implementation of the modal, using the first example here, works ...
0
votes
2
answers
774
views
how to render html in python-dash-bootstrap-components?
I've tried many things but I can't get this code to render. Unfortunately, it only appears as a string in the browser.
The variable "html code" contains the code that the Tradingview chart ...
1
vote
0
answers
192
views
how to remove hover frame from dash navbar when using dash bootstrap components
I am using dash bootstrap components and I would like to remove the black border on hover on the header. also if I remove the 404 page from the navbar, the 404 does not work when i enter a page that ...
3
votes
0
answers
1k
views
How to vertically place Plotly Dash Navbar on the left in python?
I am trying to replicate the Navbar on the left side in the following link:
https://historicalbaseball.herokuapp.com/team
I have tried this so far and I've looked through the other example projects ...
1
vote
1
answer
1k
views
How to use *spinner_style* in dbc.Spinner?
I am trying to use dbc spinner, and I notice spinner_style is used to add Inline CSS styles to apply to the spinner. Is there an example of how to use this config?
I am currently using ...
1
vote
0
answers
311
views
specifying component layout in a dash app
I am trying to format the components of a dash app using dash bootstrap components. I would like to have the graph in the image next to a slider component, as indicated in the bottom image.
It's not ...
1
vote
1
answer
988
views
Having trouble applying a border and border radius on a dbc.Table
I am attempting to:
create a border around the outside of the table
make the border have a radius
When I apply styling by stating either all 4 border sides individually (like below), the lines between ...
1
vote
1
answer
337
views
How to position my chart with Dash Bootstrap Components
I’m having a problem with the positioning of my chart on the page, in this case I’m using Dash Bootstrap Components to create rows and columns on the page…
My graphic should be next to the Card, but ...
-3
votes
1
answer
64
views
How to place a div using bootstrap 5? [closed]
I want to place div one after another, in different directions like below linked image.
Which bootstrap components can use get exact same design? Do you know any design ideas please guide me.
3
votes
0
answers
793
views
Setting border radius for Dash Bootstrap Components's CardGroup component or its parent Div doesn't work the same as for individual cards
I'm building an app in Dash using the dbc module and all of my other components and UI elements have corners rounded for 20px. However, I use a CardGroup component to display some information as ...
0
votes
1
answer
1k
views
Render Many Images with dbc.Carousel in Dash app
I have a large file of images I will like to display and eventually filter on (with callback) using dbc.Carousel. Currently, I cannot get the images to display on the local test server (127.0.0.1) - I ...
1
vote
1
answer
376
views
Switching plots between formats
I switch between two plotting formats with a radio button.
Let us call the two options 'a' and 'b.'
When option 'a' is selected, I want to plot two figures side by side using bootstrap row/col.
When ...
0
votes
1
answer
1k
views
Plotly Dash: switch between layouts based on viewport size
I have a Dash app made up of three sections: top, middle and bottom. I want it to look like this when displayed on mobile (viewport size xs):
+--------+ # mobile
| top |
|--------|
| ...
1
vote
1
answer
4k
views
How to manage buttons alignment in dash bootstrap component (dbc) navbar element?
I guess my problem is with formating html which is created automatically.
I need a navbar with several buttons. 1 on the left, 2 on the right. Between those buttons i need some text.
I manged to do ...
4
votes
1
answer
1k
views
How can I have two labels for a toggle switch?
How can I have two labels for a toggle button in Plotly Dash? Or a different kind of button with two labels.
In the picture above, the 'Toggle here for XX' are the labels. Currently, its defined as:
...
1
vote
1
answer
1k
views
Remove empty left space - plotly dash bootstrap
I am using dash bootstrap components so all my components are where I want them in my layout.
But they are alinged in the center of their rows. There is a lot of emtpy space from the left side to my ...
0
votes
1
answer
2k
views
Python Dash - Is it possible to collapse multiple sections when pressing one button?
I have a dashboard app I'm working on. It has 3 buttons that each collapse/expand a section when clicked. What I'd like to do is have every other section be closed when clicking one of the buttons. ...
2
votes
1
answer
1k
views
Creating mixed width and height cells in a Dash layout
I've seen multiple posts about how to create mixed height/width using Dash's built in dbc components and didn't see a truly flexible, easy to use method for making the following:
here are some links,
...
0
votes
1
answer
3k
views
How to connect HTML elements with Dash Callback in Python
I'm using both html elements and dash bootstrap components in my code and wonder if I can connect an HTML component with a Dash component in callback. For example, I have a dash dropdown menu and want ...
1
vote
1
answer
1k
views
Plotly Dash Boostrap drop down menu is rendered behind the the plotly graph objects. Is there a way to stop this?
I'm making a plotly - dash app that has a navigation side bar to browse through the different app pages (see code below). One of the navigation items contains a dbc.DropDownMenu that hangs over the ...
1
vote
1
answer
2k
views
Dash Bootstrap Components: Some inputs not styled correctly when using dark theme
I wrote an app with Plotly Dash / Dash Bootstrap Components (dbc). It looked fine when using a light theme (Spacelab), but with dark themes (I tried Darkly and Cyborg), dropdowns and selects are not ...
0
votes
1
answer
4k
views
How do I render a hyperlink in a Dash table? (DataTable or dbc Table)
I'm currently working on a Dash frontend interface (python), where I'm loading data from a Pandas dataframe into a table.
My question is: How do I render a hyperlink in a table? I would be interested ...
0
votes
1
answer
2k
views
Python Plotly Dash : responsive/ autosize indicator text
How to resize text and numbers in indicator automatically when changed browser window size.
For example:
import plotly.graph_objects as go
import dash_bootstrap_components as dbc
import dash
import ...
0
votes
1
answer
5k
views
Styling Accordion dash bootstrap component
I would like to customize the tabs in the accordion bootstrap component.
This is the code:
import dash_bootstrap_components as dbc
from dash import html
accordion = html.Div(
dbc.Accordion(
...
0
votes
0
answers
1k
views
dash bootstrap components not showing columns side by side
I'm using dash bootstrap component library to layout my dashboard. However the columns don't display properly when I'm using controls inside them.
Here is the code that I have for the app_layout
...