Created
March 1, 2020 06:18
-
-
Save bigeyex/09cac43ec5221f592faebc4e037aaa78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.page('/', 'Dashboard') | |
def form_page(): | |
return [ | |
Row([ | |
Column([ | |
ChartCard('Total Sales', '$126,560', 'The total sales number of xxx', height=50, | |
content=[BarChart(visit_data, show_axis=False, height=50)], | |
footer=[Statistic('Daily Sales', '$12423', inline=True)]) | |
]), | |
Column([ | |
ChartCard('Total Sales', '$126,560', 'The total sales number of xxx', height=50, | |
content=[LineChart(visit_data, show_axis=False, show_area=True, show_line=False, height=50)], | |
footer=[Statistic('Daily Sales', '$12423', inline=True)]) | |
]), | |
Column([ | |
ChartCard('Total Sales', '$126,560', 'The total sales number of xxx', height=50, | |
footer=[Statistic('Daily Sales', '$12423', inline=True)]) | |
]), | |
Column([ | |
ChartCard('Total Sales', '$126,560', 'The total sales number of xxx', height=50, | |
footer=[Statistic('Daily Sales', '$12423', inline=True)]) | |
]), | |
]), | |
Card(content=[ | |
Row([ | |
Column([ | |
BarChart(visit_data), | |
LineChart(visit_data, show_area=True), | |
], size=3), | |
Column([]) | |
]) | |
]), | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment