mebis-lp / moodle-mod_mootimeter

Other
9 stars 7 forks source link

MBS-9102: Add use of $CFG->chart_colorset if defined #45

Open PM84 opened 9 months ago

PM84 commented 9 months ago

to be used in Charts and Wordclouds

tholudwig commented 3 months ago

During testing, this also bugged me. :+1

tholudwig commented 3 months ago

Description In Moodle, the colours for diagrams can be preset under $CFG->chart_colorset. In the interests of a uniform UX, it would be desirable for Mootimeter to use the colours set accordingly.

color_visualisation

Goal

  1. The centrally set colours for the charts should be supported by Mootimeter. This affects the survey and quiz.

Testing instructions

  1. Create course with Mootimeter and survey.
  2. Enter several answers
  3. Select visualisation (ideal: pie chart).
    • before patch: standard colours are used
    • after the patch: the colours set under $CFG->chart_colorset are used