Uploaded image for project: 'ChartJS Integration'
  1. ChartJS Integration
  2. CHARTJS-4

Add ability to specify colors and opacity via the options parameter

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      The idea would be to let the user provide color configuration via the options parameter.

      ChartJS handles color configuration at the dataset level. When using the TableToChartJS macro, we could hence think of adding the colors to the data table itself. However, this approach raises several concerns:

      • For accessibility reasons, we would need to remove the color column from the table since it makes no sense to persons reading the HTML page with a screen reader.
      • While there is a simple way to add a column for mapping each data label to one color, it's more difficult to address the case when one wants one color per dataset. Also, it's handy to have global parameters such as opacity at the options level rather than at the data level.

      For these reasons, I suggest to let the extension provide the ability to specify the chart colors via the options parameter.

       

       

        Attachments

          Activity

            People

            • Assignee:
              slauriere slauriere
              Reporter:
              slauriere slauriere
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: