Skip to content

Instantly share code, notes, and snippets.

@bigeyex
Created March 1, 2020 06:18
Show Gist options
  • Save bigeyex/09cac43ec5221f592faebc4e037aaa78 to your computer and use it in GitHub Desktop.
Save bigeyex/09cac43ec5221f592faebc4e037aaa78 to your computer and use it in GitHub Desktop.
@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