Okay
  Public Ticket #3071084
data table
Closed

Comments

  • Nisa Dennis started the conversation

    Can this plugin count the number of items in a column and can that result be used in a chart?

  •  1,819
    Miloš replied

    Hi, Nisa 

    Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.

    -

    Yes, depending on how you create the table, it is possible.

    I will give you a working example of a Manual table with couple of Apex chart engine examples.

    Let's say if we have a column that holds the item names, "item name".

    And if we create additional column ( which you can hide if needed) called " item count".

    We make it integer type, and set predefined editing value to be always "1".

    3171033574.png
    3008808485.png

    In this example, i just name some items, item A and item B ,  and every new row i input, the item count already pre-populates adding number 1 in each row.

    -

    Then, if i create a basic bar chart, and if we take columns item name, and item count:

    8429354890.png

    We will use our chart feature "Grouping in charts" (please check more details here);

    If you enable this feature, the values of the rows with the same label will be summed up and rendered as a single series, if it’s disabled (the default case) all rows will be rendered as separate series.

    This can be helpful if you have repeating rows with identical names in your table, and you want to show them as sum of values for this name in your chart. This feature will also work in combination with Follow table filtering.

    7622367310.png

    As you can see, now it is showing that item A is repeating itself 4 times, and item B twice, and it is presenting how many there are in the chart.

    6567997740.png

    The same goes for this pie chart, with the additional percentages shown. If i hover the mouse over the series, i get this tooltip showing that there are  four of "item A",  and two of "item B".

    -

    Let me know if that workaround might work for you, or if you need something else.

    Thank you

    -

    And, just wanted to point out that we have a Demo Sandbox site, where you can try out the plugin functionalities, on this link

    and there is a 15-day money-back guarantee period, So if you purchase the plugin, you can safely fully test it out, and if it doesn't fit your needs you can request and receive a refund in that period. ( same goes for all plugins and add-ons)

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables