Questions tagged [plotly-dash]
Dash is a framework for building data visualisation web applications. The original release was for Python, but Julia and R versions of the framework are also now available.
4,582
questions
0
votes
0
answers
8
views
Mention a numerical metric with Plotly line maps
I am trying to plot five rail routes in Germany with plotly line_mapbox function. I am able to plot all five routes. However, I also want to mention the avg. delay caused in each route, either in text ...
0
votes
0
answers
13
views
Python Dash Cytoscape adjust size of text to fit (inside) nodes
I am attempting to fit the text that applies to specific nodes in a network however i cannot adjust the code that i have wrote in order too fit the text to the nodes without loosing bits of the text, ...
0
votes
0
answers
32
views
parse an excel file during docker running
I am trying to read an excel file using plotly dash and deployed using docker compose.
the problem is that if I run the code inside anaconda spyder, it works totally fine
But if I run using docker ...
0
votes
0
answers
7
views
How to debug Dash in VS code within a subfolder (not at root)
As part of the debugging of Dash application, I have followed the vs code application set up.
{
"version": "0.2.0",
"configurations": [
{
&...
0
votes
0
answers
19
views
dash aggrid cell to suggest autocomplete
I created a simple Dash app that loads a CSV file into an Ag-grid. Then, I added a button that adds an empty row to the aggrid once clicked.
I would like that once I start typing in one of the cells ...
-3
votes
0
answers
26
views
Why does dash report an error? How to dell with [closed]
ERROR 2023-12-07 10:54:30,461 app.py 1458: Exception on /_dash-component-suites/dash/dcc/async-plotlyjs.js [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/...
0
votes
0
answers
10
views
Trouble running dashtools
So I'm a noob when it comes to dash and python in general. I wrote an app in Dash and want to deploy it using Dash tools. However after installing using pip install dash-tools whenever I run the ...
1
vote
1
answer
16
views
Heroku API for data processing and Postgres post
I'm attempting to write my first API. I wrote (with help of GPT), a simple Request script and I uploaded the Dash-API script to Heroku. I'm getting input from multiple remote locations and I wish to ...
-1
votes
0
answers
13
views
Call java project into dash app with clientside callback [closed]
I ask the question here because i didn't find any answer. I have a Dash project where I use clientside callback inside my assets folder.
To add a new feature for my app I need to call methods from a ...
0
votes
0
answers
17
views
Selection of multiple files for analysis in Plotly Python Dashboard
I want to create a dashboard using Python Plotly for data analysis.
Requirement is as below:
Multiple files are stored in a folder
Inside the dashboard, there should be a dropdown to select one or ...
-2
votes
0
answers
39
views
all of the lines of graph in dash are same and different lines cant change to have different color [duplicate]
i have e different dropdowns , and i want when user select different "CELL" s, DRAW A NEW LINE FOR EACH CELL WITH DIFFERENT COLORS.
it draws lines , but all of the cells color are the same. ...
0
votes
0
answers
18
views
Securing Dash App with Flask's @login_required
Can someone help me protect my Dash path by using Flask?
This is how I call my dashboard
def my_dashboard(flask_app):
app = Dash(__name__, server=flask_app, url_base_pathname="/Mandant/")...
0
votes
0
answers
20
views
In dash app, my custom css file does not work when app starts
I am developping dash app in python.
To use my custom css file, I followed the recommended structure between app.py and assets folder.
However, it does not work when app start.
To apply it to my app, ...
0
votes
1
answer
57
views
Changing multiple Dash charts series colors
i have graph that it has multiple choice on 'Cell' dropdown. by choosing every cell, a new graph draws but they all have same colors. i want that each cell or each graph has its own color.how can i do ...
1
vote
0
answers
30
views
How to add fullscreen icon to a plotly chart modebar in Python Dash App
I am trying to add fullscreen option in plotly modebar to all my plotly's chart in a python Dash app. I've seen a lot of custom code snippets to achieve it in R ou JS. However, I can't find something ...
-2
votes
0
answers
23
views
Choropleth maps showing blank map
import pandas as pd
import plotly.express as px
food=pd.read_csv(r"C:\Users\ASUS\Desktop\FILES\Data analysis\projects\indian_food.csv")
food.head()
Indian_dishes= (
food
.groupby(&...
-1
votes
0
answers
15
views
Problem reading State in DASH @long_callback
I am struggling to read State values in the @long_callback. Getting errors missing 2 required positional arguments
@app.long_callback(
output=[
Output('O_A', 'figure')
],
inputs=[...
1
vote
0
answers
20
views
Visualize iteratively t-SNE in Dash for large sample dataset
I'm building a Dash app. In this dashboard, there is the possibility for the user to perform a dimension reduction of the dataset and visualize the result on a 2d or 3d plot.
The computation is really ...
0
votes
2
answers
82
views
passing value from callback to callback in Plotly dash application
i have a dash application with a plotly graph i have two callbacks i want to get input from the user store it with dcc.store in the variable with id 'stkName-value' and call it in the other callback. ...
0
votes
1
answer
56
views
Dash app with Gunicorn doesn't start in Cloud Run
I have a Python Dash app deployed in GCP Cloud Run for reporting and analysis. The app works as it does locally, and having it in GCR allows for multiple user access at the same time and implement ...
0
votes
1
answer
53
views
Applying Color Gradient to Rows in AgGrid Dash Table
In the following code, I want to apply a color gradient to the background color of each row based on the combined addition of two columns: 'Raised to Date' and 'Years in Operation' (higher values ...
2
votes
1
answer
39
views
Adding subttiles to Plotly Dash video player in Python
I am trying to add subtitles to my Plotly Dash video player, i.e. VTT captions overlay, in Python. I cannot find any examples or instruction on this.
from dash import Dash, dcc, html, Input, Output, ...
0
votes
0
answers
26
views
How to enable single-word selection in a Dash DataTable cell using dash_table.DataTable?
I have created a table using dash_table.DataTable in Dash. Currently, when I double-click a cell, the entire cell is selected, and I have to use arrow keys to navigate left and right to edit something....
0
votes
0
answers
31
views
Scattermapbox not refreshing when slicing pandas dataframe from callback
The problem is, that even when I slice and redo de plot, all the markers are shown in the Scattermap. The callbacks works as far as the hover information goes, enabeling/disabeling the hover based on ...
0
votes
1
answer
34
views
Problem building a Dropdown with plotly-Dash in python
[the code] (https://i.stack.imgur.com/NH1BZ.png)
error
the error indicates that the elements inside options must be objects, but apparently they are not being recognized.
I'm new to programming, but I'...
0
votes
0
answers
47
views
dash-ag-grid change button state in callback
Working through the examples for using dash-ag-grid. Is there a way to change the status of the button through a callback? I would like to be able to press a button and have it change from active to ...
0
votes
0
answers
32
views
How do I make my plotly dash app interactive when hovering over an item in a table?
Using plotly dash, I want to build an interactive tool for the best 10 coffee shops in Philadelphia, as well as map out all of the coffee shops in Philadelphia, but I'm having trouble implementing the ...
0
votes
1
answer
34
views
Secure way to deploy production level plotly-dash apps in aws ec2 instance
I am trying to deploy a simple internal plotly-dash webapp with very low traffic, (5-10 user, approx 2 hours usage/day), but it needs to be highly secure. How do I secure the app to white list certain ...
0
votes
0
answers
32
views
How to overlap a line with a label in Plotly graph_objects.Scatter()?
I'm trying to create a graph with three lines on it, making labels for each marker.
The problem is that on the chart there may be such points of intersection of lines and labels that the labels will ...
0
votes
2
answers
69
views
Keep style of current tab navbar item
I am building a Dash web app with two tabs, a map and a FAQ tab. It looks like this:
dash app image
As you see I have defined a navbar to navigate through the tabs, it works as expected. It is defined ...
0
votes
0
answers
12
views
in jsgantt-improved, all cols in left data table is not visible to users
I am using jsgantt-improved in plotly dash to display the gantt-chart with data table.
this is my output
left data table is not displaying all the columns.
this is my
json=[
{
"pID": 1,
&...
0
votes
0
answers
33
views
How to trigger a serverside callback in dash app from javascript?
I have this simple dash app to test how to trigger a serverside callback from within a javascript. However, this does not work! Whenever I click the trigger callback button it DOES change the value of ...
2
votes
1
answer
125
views
Can we stop the Dash "POST /dash/_dash-update-component HTTP/1.1" log messages?
Has anyone figured out how to stop the following Dash log messages? They clutter up my logs, and on a busy website, make it almost impossible to see actual, useful log messages when errors occur.
[17/...
1
vote
0
answers
41
views
Unable to iframe WSGI Web App in Apache Superset
Former colleagues developped an internal graphical tool to view data with Apache Superset and a WSGI App based on Dash. These former colleagues are no longer here (of course).
So basically, they ...
0
votes
0
answers
29
views
Plotly dot plot - how to group multiple columns
I feel like I'm going crazy trying to figure this out. Supposedly I have this data frame, how can I create a dot plot similar to the graph below? (just the dots and not the bars)
ProbesetID
bone ...
2
votes
1
answer
37
views
Add next/previous buttons to plotly dash
The dash app has mainly two plots, of which the first one is used to show data in the second one. This is by selecting a data point in the first and it will load up a connected data frame to be shown ...
0
votes
1
answer
48
views
Role based access control in Flask with multiple embedded Dash applications
This has been crushing my skull for the past week. I'd like to be able to restrict access to Dash applications within a Flask application based on the user's role. I used the flask mega tutorial as a ...
0
votes
0
answers
27
views
How to get the current frame of a animation_frame in dash python?
I would like to get the current value of a animation frame and then to print it in my python terminal but also to show it in the website, how can I do that ?
I already tried to output it was a ...
0
votes
0
answers
39
views
Add data (more than 1 point) to an existing trace in plotly dash
I played with both :
https://www.dash-extensions.com/components/event_source and
https://github.com/bcliang/dash-extendable-graph/tree/master
to update a trace when new data are pushed by the client (...
0
votes
0
answers
20
views
problem with dcc.Store in plotly dash - each clalback input value as None
I'm trying to build some dashboard which will show me some real time data from live experiment. I had it worked, but once I've tried to upgrade it, it is not working anymore. Here is the idea of my ...
0
votes
0
answers
28
views
Plotly Dash Graph Requires Page Refresh to Update
I am trying to update a go.Figure by overwriting the data with new (scatter) traces. This figure is displayed in my Dash dashboard and automatically reloaded using an interval. However, when I update ...
0
votes
0
answers
15
views
Hover info within a selection in Plotly
When selecting a set of points in a plotly scatter plot, the displaying of hover data is disabled.
This behavior can very well be observed in any of the examples in the plotly selection doc.
Using ...
0
votes
1
answer
53
views
Custom color for plotly python radar chart labels
I want to colorize each label_column with label_color using fig.update_polars(angularaxis_color=color) or fig.update_polars(angularaxis=dict(color=color)) but I can't.
How can I color each ...
0
votes
1
answer
43
views
dash dbc Modal: background more blur or dark
I am working on a dash app.I am using dbc Modal with backdrop=False and getting totally visible background when modal is open. Also I tried backdrop='static' and getting atleast faint background.
...
0
votes
0
answers
89
views
Creating dynamic delete button for a dictionary using python dash?
I have a dash app where a user inputs dates with a name attached and this is appended to a dictionary.
Firstly the dictionary is rendered:
# Create dictionary that will be updated using '...
0
votes
0
answers
40
views
dash script that filters and modifies dataframes give warning
I have the following script
import dash
from dash import dcc, html
from dash.dependencies import Input, Output
import pandas as pd
# The warning has not been resolved
# Sample DataFrame
data = {
...
1
vote
2
answers
55
views
Cleanly arranging checklist items dash
I work on a dashboard using plotly dash and need to display a checklist with about 60 options. However, the number is not fixed so arranging of the options has to be done dynamically. I am using:
dcc....
0
votes
0
answers
55
views
Dash import fails on Python
I have Python 3.12.0 installed and running properly. I am able to import and use Pandas and NumPy. I have pip installed Dash. Everytime I try to import dash, I get
ModuleNotFoundError: No module ...
0
votes
0
answers
38
views
dash: does ThemeSwitchAIO support State
I am working on dash app. I am using ThemeSwitchAIO to switch between the themes. I read in docs that theme will get applied instantly to all components except figures which we need to reconstruct. As ...
0
votes
0
answers
33
views
Dash Scattermapbox without custom data
I am working on a dashboard in which the user can select which datapoints are displayed on a map. In the absence of a selection I need to display the map without any added data, so just open-streetmap....