Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-59790

Pie charts do not display the data label in the tooltip

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.4, 3.3.1, 3.4
    • Fix Version/s: 3.2.5, 3.3.2
    • Component/s: Libraries
    • Labels:
    • Testing Instructions:
      Hide
      1. Visit http://YOURMOODLE.moodle.com/integration_master/lib/tests/other/chartjstestpage.php
      2. Hover over the pie and doughnut charts.
      3. Make sure thevalues tooltip displays the year, then data category & value in different line.
      4. The year should match the legend.
      5. Go over the rest of chart types. Ensure their values tooltips are consistent (multiline, first the legend then the category and value...).
      Show
      Visit http://YOURMOODLE.moodle.com/integration_master/lib/tests/other/chartjstestpage.php Hover over the pie and doughnut charts. Make sure thevalues tooltip displays the year, then data category & value in different line. The year should match the legend. Go over the rest of chart types. Ensure their values tooltips are consistent (multiline, first the legend then the category and value...).
    • Affected Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-59790-master

      Description

      While working on MDLSITE-4399 I noticed a small bug in our charts API.

      1. Go to lib/tests/other/chartjstestpage.php
      2. Hover over coloured data in the pie or doughnut chart
      3. Expected: In the tooltip, there should be labels with the year displayed
      4. Actual: Only the value is displayed

      I was trying to debug this shortly but did not find anything obvious that could cause this. When the chart type is changed to, say, bars, the labels are displayed correctly.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Sep/17