Quantcast
Channel: šŸŽ›ļø Dash - Plotly Community Forum
Browsing all 6271 articles
Browse latest View live
↧

[DASH-Line Chart] Showing the last n-element in LineChart

Hi, This is part of my code. x = [1] y = [1] ... ... app.layout = html.Div(children=[ dcc.Graph(id='line_graph', figure={ 'data': [ {**'x': x**, **'y': y**, 'type': 'line', 'name': 'SF'}, ], 'layout':...

View Article


Dash app deployment error on Heroku | 1st deployment

Hello all - I am trying to deploy my 1st Dash app on Heroku and followed the guidelines. My application runs fine on local server but have deployment issue. I have set up requirement.txt, Procfile,...

View Article


Export to plot.ly not working anymore

Hello everyone, I started to use plotly a while ago for its accessibility and its ease of use and i really enjoyed it so far. My workflow consisted of doing some tweaking for my plots hard coding them...

View Article

Image may be NSFW.
Clik here to view.

TypeError: Cannot read property '0' of undefined

I am rendering a datatable which is returned by a function call 'top_leads' that invokes a python script. Here’s my code: layout = html.Div([ html.Div([ dash_table.DataTable( id='tenant-table',...

View Article

Addition of button inhibits plot display

I have an app, where I display interactive graphs that worked pretty well. I recently added a button that takes the graph as an input and saves it as a .svg file. This does work, the graph gets...

View Article


Dash callback on closing/refresh to close logfile

I am writing to a logfile using my own customization of the Python logger functionality in my dashboard. This opens and writes to a file when the dashboard is started. Is there some way to properly...

View Article

Image may be NSFW.
Clik here to view.

Why does date range picker return values with time for first time and only...

dash_core_components.DatePickerRange first returns dates with time when selected dates for the first time and only dates from second time onwards. In below example, I am printing dates as i select...

View Article

Image may be NSFW.
Clik here to view.

Go.scatter mode scatter and lines+scatter gives different behaviour

newplot (8)700Ɨ450 26 KB newplot (9)700Ɨ450 33.4 KB I think that the problem is about x_axis range, in fact e this is my code to plot my data which is dataframe of sorted datetime in the index and...

View Article


Insert boostrap/html into Dash App?

Hello Is it possible to copy the code that creates a Modal Image Gallery as shown in this page and insert it into a dash app? If it is possible, are there any guides or documentation on how to do...

View Article


Location object update from callback does not fire an input location callback

Hi everyone. I cannot find a way to ā€œinternal redirectā€ the user without refreshing the page, after the pressing of a button and checking some backend rules (inside the callback). Imagine having a...

View Article

Timing for data creation

Hello, has anyboy experience about when is the right timinig to create the data for interactive graphs? I have multiple graphs which can be updatet via inputs. Since tht input data is quite complex...

View Article

Stop running scraper inside callback by click

Hi everyone! I’m trying to build a scraper using Dash framework. User fills in form with some input parameters, clicks ā€œRunā€ button and scraper starts to run inside the button callback. Is there any...

View Article

Image may be NSFW.
Clik here to view.

First and last columns of Datatable get cut after introducing scrollbar

I’m having a problem with my datatable. Whenever I introduce a scrollbar, the first column of that datatable is cut. Look at the code below: import dash import dash_table import dash_html_components...

View Article


Image may be NSFW.
Clik here to view.

COVID-19 Cases Tracker

Hello everyone, I’ve made a dashboard for tracking COVID-19 cases by country and by US state. (seems to be one of many). The app uses the data from the Johns Hopkins Github repository, and provides...

View Article

Plotly Subplots using add_trace

Currently I have a plot that works individually: traces = {} for col in tickers: traces[col] = go.Scatter(x=x, y=df[col] * 100, name=col, mode='lines', line=dict(width=0.5), stackgroup='one' ) data =...

View Article


Image may be NSFW.
Clik here to view.

How to put a text on top of an image?

Hi, I am trying to get to a layout similar to ā€œoil and gasā€, image909Ɨ788 25.5 KB I want to have this card-like widgets for text data, how can I do it? 1 post - 1 participant Read full topic

View Article

How do I filter a datatable with multiple conditions/criteia? - how to do &&...

Lets say I have a datatable with a bunch of records. One of those columns is ā€˜temperature’ and I want to filter the datatable so it shows anything >100 and <200. How do I do this? If I set it to...

View Article


Invoke a function from plotly/dash

how can i invoke a function or call a function from option in dropdown menu? 1 post - 1 participant Read full topic

View Article

How to display variable value as output? (Easy question)

I have a very simple question. I am trying to show summary of my data as: Total cases: Total deaths: I have shown graphs and everything in my dashboard, but I can’t find anything on how to display...

View Article

Creating a multi filter (basic question)

Hi I think this is simple but can’t find info on it anywhere. I have a dataframe and want to show line plots. One column has, for example, the year, another has the month. I want to be able to display...

View Article
Browsing all 6271 articles
Browse latest View live