I’m having trouble getting multiple inputs and outputs to work in Dash-leaflet. Essentially, I want to do the following: on a mouse click place a marker on the map, and when hovering over a country highlight an area of the map with a polygon and display some information about the country being hovered over in a different pane. I implemented
Tag: plotly-dash
Combine DateRangePicker and Dropdown in Plotly Dash
I’m trying to use DateRangePicker and Dropdown to callback a dash_table. Actually I tried to call dropdown option first and then call dash_table after calling options, but it didn’t work. I don’t know how to add a second call back that is based on dropdown options. Below is my code: Answer You can include both filters in your callback as
Python Dash: Exclude option from one dropdown when chosing the same option in another dropdown
I am working on a Python Dash dashboard and have two dropdowns with the same options: enter image description here When I select an option in the first dropdown, how do I exclude the same option from the second dropdown? – So that I cannot choose the same material with both dropdowns. Where and how would I do this in
How do I implement Dash/Plotly checklist persistence on a layout with multiple unique graphs?
My dashboard has a 2 x 2 graph layout with one checklist overlaid on each graph. Each graph requires a unique ID, to be live-updated via callbacks. These IDs are generated in a loop (e.g., graph-BMW, graph-MB, etc.). Similarly, each checklist has a unique ID generated via the same loop (e.g., checklist-BMW, checklist-MB, etc.). These IDs are passed to the
Dash Plotly Cytoscape initial zoom isn’t working
I’m trying to create a Cytoscape on Plotly Dash. The zoom value I gave in Cytoscape props does not affect. Answer I think the problem is that the preset layout sets fit to True by default (source). The documentation tells us the problem with this: Initial viewport state zoom : The initial zoom level of the graph. Make sure to
Is there a way to extract the current frame from a plotly figure?
Basically, I have a plotly animation which uses a slider and pause/play buttons to go through a dataset. I want to extract the number of the current frame (i.e., the current index in the ‘steps’/‘frames’ lists which the slider is on) in a Dash callback, so that I can update a table based on the main graph. For example, in
How to change the range of theta for each plotly scatterpolar category
I am currently using Plotly’s scatterpolar module to create a radar chart. I am trying to visualize the statistical categories for all 5 basketball statistics (points, assists, rebounds, steals, and blocks). The problem is that the range for every single category is set to the highest value which is points. I’d like to make the range for each category separate
Line chart not showing data on multi-page plotly dash
Weird error here. A single page plotly dash shows data on my line chart but when I created a multi page dash, the line chart doesn’t show the data anymore. just shows this. Can’t seem to find a way to show the line chart data even though my code is the same. index.js main.py New to dash so any help
Dash datatable – bar plot when choosing/clicking one value of the table
I’m new using Dash and I wonder if it is possible to have a Dash table with 1 column of numeric values like this one: And have the option to choose/click to one of the values and make a bar plot appear with the value clicked. Hope you can help me. Thanks in advance. Answer You could use the active_cell
ERR_TOO_MANY_REDIRECTS in a Flask application. Works in local but not in server
In local my Flask application works fine, and when I use /editing_buddy it redirects me correctly. The thing is, when I upload it to the server, it always gives me 404 Error. If I try to use @app.route decorator, I get a TOO MANY REDIRECTS error. My server is hosted by Wikimedia in funpedia.toolforge.org if that helps. It’s a webservice