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.

Dash is written on top of Plotly.js and React.js, and its Python implementation uses Flask on the backend.

Extensive documentation and a gallery of examples are available.

Dash is an open source library, released under the MIT license.

Enter image description here

Enter image description here

Enter image description here

4538 questions
1
vote
0 answers

Connecting local data to Docker Django project

This is a question to understand what should be the best practice to follow in order to connect the dots on the argument. Currently I am developing a Dockerized Django website. In this website, one of the apps will be named 'dashboards', where I…
BloomShell
  • 833
  • 1
  • 5
  • 20
1
vote
2 answers

How to is "facet_row" for "add_scattergl"?

Here I want to plot the fault for every every sub plots according to there unit. how to use "facet_row" for "figline.add_scattergl(x=df2.DateTime, y=df2.Value.where(df2.DataType=="Fault"), name="Fault", line={'color': 'red'})" this line. import…
Sartaj0111
  • 11
  • 1
1
vote
1 answer

How to show the result of NetworkX graph in Plotly.Dash using Dash callbacks

I have a list of edges between several nodes of a graph as a .csv file. I am reading the mentioned file and storing it in a Dash Store component like below: dataset = pd.read_csv(io.StringIO(decoded.decode('utf-8'))) del…
Naser.Sadeghi
  • 1,341
  • 1
  • 12
  • 35
1
vote
0 answers

Plotly dashboard completely restarts

I have a plotly dashboard built with dash. Some of the chart elements are set to refresh every couple of seconds. Instead of just refreshing that individual dashboard, the entire webpage refreshes and it rebuilds every element. This is an example of…
Cauder
  • 2,157
  • 4
  • 30
  • 69
1
vote
1 answer

How to display a column based on user input in Dash Plotly

I'm trying to display a column based on the user's input. For example, columns 2 and 3 are not displayed, but if the user types 2, column 2 will be displayed. However, my current program is displaying both columns even if the only input is 2 and I'm…
Crystal
  • 11
  • 3
1
vote
0 answers

Plotly-Dash | 1 marker_symbol for every trace / line

I have a web app, where I pass Plotly configs via. GUI. Whenever I pass multiple data lines and 1 marker, it automatically alters the traces to having one unique marker_symbol. How can I have 1 marker_symbol, e.g. circle, for all lines? Below, is…
1
vote
0 answers

dash and plotly - select points on graph programatically

I built a simple web-app in dash where I have a scatterplot which the user can select points from. All the points that the user selects are shown in a text box output for visibility. All of this works fine, but the problem arises when I want to…
erap129
  • 910
  • 1
  • 8
  • 17
1
vote
0 answers

ModuleNotFoundError: No module named 'dash'

I need to have the latest version for dash. But I already have dash. brew info dash Warning: Treating dash as a formula. For the cask, use homebrew/cask/dash dash: stable 0.5.11.5 (bottled), HEAD When I try to run my app, I am getting the…
1
vote
1 answer

My function stops on the first value and I want it to keep going

I'm working on a dashboard with information about tennis professional players. I got this for loop and I'm getting the desired output: for ind in df.index: if df['Winner'][ind] == 'Nadal R.' and df['Loser'][ind] == 'Djokovic N.': …
1
vote
0 answers

Difference between dash.dash.Dash and dash.Dash?

I'm fixing up some code in an old repo and I need to get some (mypy) tests passing. Mypy doesn't seem to recognise dash.Dash calls, throwing the following: error: Module has no attribute "Dash". A simple fix I've found is to use dash.dash.Dash which…
j-hil
  • 115
  • 10
1
vote
2 answers

Dash: Second table is not updating anymore after the first callback from initial table

I have two tables where the input of the first one (let's call it A) creates a second table (B). Teh first callback works fine, but after the second callback of clicking A, B is not updating anymore. Found a similiar issue here with no response…
mizzlosis
  • 515
  • 1
  • 4
  • 17
1
vote
0 answers

How to turn a dataframe with a list column into a dash Data Table, with the list contents as rows?

I have a dataframe with the columns App | Week | Top Users -------+--------+------------------------------ App 1 | Week 1 |[1st user, 2nd user, 3rd user] that shows the top 3 users of each app per week. The Top Users cells contain a list…
Serda Shehu
  • 75
  • 1
  • 7
1
vote
1 answer

Dash chart does not display default dropdown value selection upon page load and refresh

I'm just getting to grips with Dash but am coming across a problem I can't resolve. I am trying to pass a default dropdown value to a line chart upon page load, but even though the value is present in the dropdown menu it doesn't render in the…
Dan Harrison
  • 127
  • 1
  • 7
1
vote
1 answer

Make column width fit to data and header in Dash Datatable

I am using Dash actually but havent found any way to properly set column width adapted to the content. Because when I set fill_width to False, the width fits to the datas but not to the header and on some of my columns the header is wider than the…
Ces
  • 76
  • 1
  • 7
1
vote
1 answer

Dropdown in Dash/Plotly

I have seen lots of answers but the whole concept of callbacks kind of throws me off (still early in my python journey) My goal is just to make a graph that add many different indicators at the same time as opposed to separate graphs. Below is a…