Skip to content

Showing blank on localhost 4005 #667

Discussion options

You must be logged in to vote

In "controllers\routes\main.py", I changed def init_state(at: Atri): at.bar1.custom.data = [{"x":2010, "category1":40, "category2":50}, {"x":2011, "category1":30, "category2":60}] to def init_state(at: Atri): at.BarChart1.custom.data = [{"x":2010, "category1":40, "category2":50}, {"x":2011, "category1":30, "category2":60}] and it worked. I changed bar1 to BarChart1. Your name of BarChart1 could be different.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by withnikhil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant