davidcomfort / dash_sample_dashboard Goto Github PK
View Code? Open in Web Editor NEWBuild a Complex Reporting Dashboard using Dash and Plotly
Build a Complex Reporting Dashboard using Dash and Plotly
Hi David,
I assume the Assets directory and Custom.css is what you used to style the dashboard, How did you connect this file/directory to the main code in order to reflect the styling of the dashboard ? and if its not that directory/file you used to style the dashboard. I would like to know how you styled it by providing borders. Thank you.
Live dashboard isn't working (https://davidcomfort-dash-app1.herokuapp.com/cc-travel-report/paid-search/)
"An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail
"
I download all the css file to local dash sample dashboard project
but cannot find its corresponding definition for classname "tab first", "tab"
def get_menu():
menu = html.Div([
dcc.Link('Overview - Birst ', href='/cc-travel-report/overview-birst/', className="tab first"),
dcc.Link('Overview - GA ', href='/cc-travel-report/overview-ga/', className="tab"),
dcc.Link('Paid Search ', href='/cc-travel-report/paid-search/', className="tab"),
dcc.Link('Display ', href='/cc-travel-report/display/', className="tab"),
dcc.Link('Publishing ', href='/cc-travel-report/publishing/', className="tab"),
dcc.Link('Metasearch and Travel Ads ', href='/cc-travel-report/metasearch-and-travel-ads/', className="tab"),
], className="row ")
return menu
code in index.py, and i download all the css files to local
external_css = ["https://cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css",
"https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css",
"//fonts.googleapis.com/css?family=Raleway:400,300,600",
"https://codepen.io/bcd/pen/KQrXdb.css",
"https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css",
"https://codepen.io/dmcomfort/pen/JzdzEZ.css"]
According to plotly/dash#641 you have to add {%renderer%}, somewhere after {%scripts%} in index.py.
Otherwise you get the exception dash.exceptions.InvalidIndexException
hi, this may be off topic, but do you know how to collapse&un-collapse rows in the data table?
Firstly congratulations your dashboard is very cool, I am trying to run your dashboard locally but I have the following error when executing it:
Running on http://0.0.0.0:8050/cc-travel-report/paid-search/
Debugger PIN: 918-421-685
/usr/local/lib/python3.6/site-packages/dash/resources.py:45: UserWarning:
A local version of https://code.jquery.com/jquery-3.2.1.min.js is not available
/usr/local/lib/python3.6/site-packages/dash/resources.py:45: UserWarning:
A local version of https://codepen.io/bcd/pen/YaXojL.js is not available
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2309, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1741, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python3.6/site-packages/dash/dash.py", line 581, in index
pl=plural
dash.exceptions.InvalidIndexException: Missing element new DashRenderer in index.
I think the same dataset df = pd.read_csv('data/performance_analytics_cost_and_ga_metrics.csv')
was read in these files when then app is launched. It was read 3 times.
components/functions.py
callbacks.py
layouts.py
Would it be better to create a Singleton object so that the CSV is only read once?
thank you for your medium post? how do you run locally?
I tried python app.py
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.