diff --git a/app/controllers/problems_controller.rb b/app/controllers/problems_controller.rb --- a/app/controllers/problems_controller.rb +++ b/app/controllers/problems_controller.rb @@ -148,6 +148,9 @@ @summary = { attempt: user.count, solve: 0 } user.each_value { |v| @summary[:solve] += 1 if v == 1 } + + #for new graph + @chart_dataset = @problem.get_jschart_history.to_json.html_safe end def manage