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

Label values on series should always prevail when displaying a chart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.2
    • 3.2
    • Other
    • MOODLE_32_STABLE
    • MOODLE_32_STABLE
    • MDL-55352-master
    • Hide
      1. Download the attached script.
      2. Open the browser and run it.
      3. Mouse over the violet bars and make sure they have custom tool tips ($ before the value)
      4. Now, mouse over the orange bars, make sure they have not custom tool tips (should not have $)
      5. Click on Show chart data link to expand the data table.
      6. Make sure the values of Sales (With Series Labels) column are displayed with $
      7. Make sure the values of Expenses (No Series Labels - Default) column are NOT displayed with $.
      8. Check nightly results, make sure there are no failures for mod_choice and mod_feedback.
      Show
      Download the attached script. Open the browser and run it. Mouse over the violet bars and make sure they have custom tool tips ($ before the value) Now, mouse over the orange bars, make sure they have not custom tool tips (should not have $) Click on Show chart data link to expand the data table. Make sure the values of Sales (With Series Labels) column are displayed with $ Make sure the values of Expenses (No Series Labels - Default) column are NOT displayed with $ . Check nightly results, make sure there are no failures for mod_choice and mod_feedback.

      Currently, a chart_series can define custom labels for its values but on display the custom label is appended to the value. This shouldn't be the case as it means that we can never replace the value with something more custom (e.g. 1000000 to 1mil).

      This issue should change it so that in both htmltable and chartjs output the raw series value is only used when no labels have been defined.

            lameze Simey Lameze
            fred Frédéric Massart
            Adrian Greeve Adrian Greeve
            Dan Poltawski Dan Poltawski
            Ryan Wyllie Ryan Wyllie
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.