[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 ArticleDash 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 ArticleExport 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 ArticleTypeError: 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 ArticleAddition 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 ArticleDash 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 ArticleWhy 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 ArticleGo.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 ArticleInsert 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 ArticleLocation 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 ArticleTiming 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 ArticleStop 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 ArticleFirst 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 ArticleCOVID-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 ArticlePlotly 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 ArticleHow 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 ArticleHow 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 ArticleInvoke 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 ArticleHow 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 ArticleCreating 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