Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maximum recursion depth exceeded on LineChart #141

Open
lengzuo opened this issue Apr 20, 2018 · 0 comments
Open

maximum recursion depth exceeded on LineChart #141

lengzuo opened this issue Apr 20, 2018 · 0 comments

Comments

@lengzuo
Copy link

lengzuo commented Apr 20, 2018

response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/lengzuo/Desktop/sreport/reports/views.py", line 20, in LineChart
chart = LineChart(data_source)
File "/Users/lengzuo/Desktop/sreport/reports/views.py", line 20, in LineChart
chart = LineChart(data_source)
File "/Users/lengzuo/Desktop/sreport/reports/views.py", line 20, in LineChart
chart = LineChart(data_source)
[Previous line repeated 930 more times]
File "/Users/lengzuo/Desktop/sreport/reports/views.py", line 17, in LineChart
data_source = SimpleDataSource(data=data)
RecursionError: maximum recursion depth exceeded

Code as below:
def LineChart(request): data = [ ['Year', 'Sales', 'Expenses', 'Items Sold', 'Net Profit'], ['2004', 1000, 400, 100, 600], ['2005', 1170, 460, 120, 710], ['2006', 660, 1120, 50, -460], ['2007', 1030, 540, 100, 490], ] # DataSource object data_source = SimpleDataSource(data=data) print('data :%s ' % data_source) # Chart object chart = LineChart(data_source) context = {'chart': chart} return render(request, 'index.html', context)

@lengzuo lengzuo changed the title maximum recursion depth exceeded on maximum recursion depth exceeded on SimpleDataSource Apr 20, 2018
@lengzuo lengzuo changed the title maximum recursion depth exceeded on SimpleDataSource maximum recursion depth exceeded on LineChart Apr 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant