kabure
August 19, 2021, 2:52am
1
Hey fellows,
I would like to share with you one component that I developed for a project;
It’s using pattern-matching callbacks to build the cards and also all the values related to the charts;
This component is based on the React Grid layout component;
A taste of the app:
Link to the app:
https://trich-draggable-comp.herokuapp.com/
Link to the code on Github:
Hope it can be useful to someone;
Regards,
Leonardo
10 Likes
Thank you Leonardo. Looks great and loved the video
1 Like
renyi
September 27, 2021, 3:11pm
3
awsome work! Thanks for sharing your work, but it may takes me some time to figure out how it works
kabure
September 27, 2021, 3:58pm
4
Hey mate, what’s your question about it?
Are you having problems running it or is the problem you’re facing on other parts?
renyi
September 27, 2021, 4:13pm
5
kabure:
r parts?
Ha ha, I started using plotly/dash in recent days. So I think it may take some time to understand it. Thanks for your reply.
kabure
September 27, 2021, 4:43pm
6
To run this, you just need to install pipenv
so:
pipenv shell
pipenv install
python app.py
It should work
renyi
September 28, 2021, 12:52pm
7
There is a package named dash-draggable https://github.com/MehdiChelh/dash-draggable . Are there any similarities and differences between dash_trich_components and dash_draggable
renyi
September 28, 2021, 3:09pm
8
I got this error
decouple.UndefinedValueError: MONGODB_DATABASE not found. Declare it as envvar or define a default value.
kabure
September 28, 2021, 3:24pm
9
Hey bro… You need to set the environment variables;
decouple helps on this by reading the .env file
So you can add the needed informations in a .env file
renyi
October 25, 2021, 3:27pm
10
When I use dtc.ResponsiveGrid alone, there is no display.
import dash
import dash_bootstrap_components as dbc
import dash_trich_components as dtc
import dash_core_components as dcc
import dash_html_components as html
app = dash.Dash(__name__)
app.layout = html.Div([dtc.ResponsiveGrid(
[dbc.Label('aaaaaaaaa')],
id="grid_layout",
)])
if __name__ == '__main__':
app.run_server(debug=True)
renyi
October 25, 2021, 3:47pm
11
I see. I need to add an id to the component otherwise there will be no display
renyi
December 3, 2021, 8:43am
12
Are there some methods to make the text in the graph resized with the component? When I zoom out the component, the text size does not change
very nice package! I can’t find a way to move objects vertically. Is there a way to do so? Thanks