Show scale results as average next to a donut chart
Average and distribution now sit side by side: a big average figure with its gauge or stars, and the distribution as a donut (CSS conic-gradient, shades of one colour, legend with percent and count). A single dropdown setting scale_view (both, average only, chart only) replaces the two checkboxes; a single part is centred. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bf16ac0d3b
commit
b3c80ab79f
8 files changed
+185
-192
No files matched your search
@@ -162,8 +162,8 @@ class SlidesTable extends Table
|
||||
$settings['private'] = filter_var($input['private'] ?? false, FILTER_VALIDATE_BOOLEAN);
|
||||
$settings['comments'] = filter_var($input['comments'] ?? false, FILTER_VALIDATE_BOOLEAN);
|
||||
$settings['comment_ratings'] = filter_var($input['comment_ratings'] ?? false, FILTER_VALIDATE_BOOLEAN);
|
||||
$settings['show_average'] = filter_var($input['show_average'] ?? true, FILTER_VALIDATE_BOOLEAN);
|
||||
$settings['show_distribution'] = filter_var($input['show_distribution'] ?? true, FILTER_VALIDATE_BOOLEAN);
|
||||
$view = $input['scale_view'] ?? null;
|
||||
$settings['scale_view'] = in_array($view, Slide::SCALE_VIEWS, true) ? $view : Slide::SCALE_VIEW_BOTH;
|
||||
break;
|
||||
case Slide::TYPE_QUIZ:
|
||||
$limit = (int)($input['time_limit'] ?? $settings['time_limit']);
|
||||
|
||||
Reference in new issue
Block a user