Make chart options configurable

Created on 15 December 2023, 11 months ago
Updated 29 December 2023, 11 months ago

Problem/Motivation

When I use this module I can't configure the main chart settings like: pieSliceText, pieHole, legend options and colors for the chart elements.

Proposed resolution

Make some chart option configurable when we adding a block.

✨ Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine deulenko

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @deulenko
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 10.1.4 + Environment: PHP 8.1 & MySQL 5.6
    last update 11 months ago
    Build Successful
  • πŸ‡³πŸ‡±Netherlands batigolix Utrecht
  • Status changed to Needs work 11 months ago
  • πŸ‡³πŸ‡±Netherlands batigolix Utrecht

    I tried your patch on a clean D10 website, but I get this error on /admin/structure/webform/manage/contact/results/analysis

    The website encountered an unexpected error. Please try again later.

    TypeError: array_merge(): Argument #2 must be of type array, null given in array_merge() (line 179 of modules/contrib/webform_analysis/src/WebformAnalysisChart.php).
    Drupal\webform_analysis\WebformAnalysisChart->buildPieChart(Object, 'name', Array) (Line: 96)
    Drupal\webform_analysis\WebformAnalysisChart->build(Array) (Line: 61)
    Drupal\webform_analysis\Form\WebformAnalysisForm->buildForm(Array, Object)

    I used the default Contact form provided by Webform and created 2 test submissions

Production build 0.71.5 2024