Okay
  Public Ticket #3767913
Creating charts from a wpdatatables that gets data from gravity forms
Open

Comments

  • Fatlind started the conversation

    Hi,

    I need assistance in creating a wpDataChart to visualize how many times each radio button selection has been repeated across form entries in wpDataTables. I want to achieve the following:

    1. Group the entries by the radio button selection (e.g., "Milan", "Barcelona", etc.).
    2. Count the frequency of each unique radio button selection (e.g., how many times "Milan" appears, how many times "Barcelona" appears).
    3. Create a wpDataChart that accurately reflects this data, ideally in a bar chart or pie chart format, displaying the count of each selection.
    Example of the Data:

    Here is a sample of the data I have in the table:

    • Milan
    • Milan
    • Milan
    • Barcelona
    • Inter
    • Milan
    • Barcelona
    • ManUtd
    • ManUtd
    • Barcelona
    • Inter

    I would like to generate a table where each radio button selection (e.g., "Milan", "Barcelona", etc.) is grouped, and the count of how many times each selection appears is displayed next to it. For example:

    Milan ---- 4

    Barcelona ---- 3 

    Inter ---- 2 

    ManUtd ---- 2

    My Questions:
    • How can I group the entries by the radio button selection and count the frequency of each selection in wpDataTables?
    • Is there a way to create a wpDataChart that will use this grouped data to display the frequency of each selection?