Show the difference between two flag counts and be sortable in views

Created on 18 October 2024, 4 months ago

I have two flag global links:

Happy stomach
Bad stomach

It is based on a food items and how they affect someone when being used.

Over time they build their count as people click on them, so I have this:

Happy stomach: 79
Bad stomach: 12

How can i show this count on the front-end in the full-content manage display so that people can see the difference? I'm thinking embed the block in a field next to the flag on the node and then use contextual ID to show the flags that reference the product?

Secondly, how do I show the difference here in percentage so that we can show context and compare to other foods?

This would be a difference of 84%, how could i show this on the front-end in a view so people can compare these numbers with other foods?

💬 Support request
Status

Active

Version

4.0

Component

Views integration

Created by

🇬🇧United Kingdom effortDee

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

Comments & Activities

Production build 0.71.5 2024