Stacked & grouped bar charts show 1 value instead of actual count #5187

Open
opened 2026-02-20 16:31:06 -05:00 by deekerman · 0 comments
Owner

Originally created by @Mac-Rae on GitHub (Apr 25, 2024).

Issue

A report created to show stacked or grouped bar charts doesn't work as expected. For example see screenshot which shows a chart where data blocks are the value of 1 and not the correct value from the report. This is replicable on the live demo.
image
image

Expected Behavior

This report should display the data blocks with the right value and "height" associated with each block.

Actual Behavior

This report only shows data blocks with value of 1.

Possible Fix

Steps to Reproduce

  1. Create a new report and select a module like Accounts
  2. Add 3 data points, for example ID/Name, Type and Assigned To.
  3. Apply a count to Name, Hide Type, and Group by Assigned To
  4. Set the main group to Type
  5. Add a charts
  6. Set the X and Y inputs to those charts as X = Assigned To and Y = Name/ID
    image
    image

Context

Prevents the reports module from being fully effective.

Your Environment

  • SuiteCRM Version used: 7.14.3
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Version 124.0.6367.62 (Official Build) (64-bit)
  • Environment name and version (e.g. MySQL, PHP 7): UKN demo.suitecrm.com
  • Operating System and version (e.g Ubuntu 16.04): UKN demo.suitecrm.com
Originally created by @Mac-Rae on GitHub (Apr 25, 2024). <!--- Provide a general summary of the issue in the **Title** above --> <!--- Before you open an issue, please check if a similar issue already exists or has been closed before. ---> <!--- If you have discovered a security risk please report it by emailing security@suitecrm.com. This will be delivered to the product team who handle security issues. Please don't disclose security bugs publicly until they have been handled by the security team. ---> <!--- Please be aware that as of the 31st January 2022 we no longer support 7.10.x. New issues referring to 7.10.x will only be valid if applicable to 7.12.x and above. If your issue is still applicable in 7.12.x, please create the issue following the template below --> #### Issue <!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug --> <!--- Ensure that all code ``` is surrounded ``` by triple back quotes. This can also be done over multiple lines --> A report created to show stacked or grouped bar charts doesn't work as expected. For example see screenshot which shows a chart where data blocks are the value of 1 and not the correct value from the report. This is replicable on the live demo. ![image](https://github.com/salesagility/SuiteCRM/assets/45397629/499fbe45-9f08-439d-8818-c1de0397fb85) ![image](https://github.com/salesagility/SuiteCRM/assets/45397629/66f0401a-da6d-41a7-9647-e24a3cd2d45c) #### Expected Behavior <!--- Tell us what should happen --> This report should display the data blocks with the right value and "height" associated with each block. #### Actual Behavior <!--- Tell us what happens instead --> <!--- Also please check relevant logs (suitecrm.log, php error.log etc.) --> This report only shows data blocks with value of 1. #### Possible Fix <!--- Not obligatory, but suggest a fix or reason for the bug --> #### Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug include code to reproduce, if relevant --> 1. Create a new report and select a module like Accounts 2. Add 3 data points, for example ID/Name, Type and Assigned To. 3. Apply a count to Name, Hide Type, and Group by Assigned To 4. Set the main group to Type 5. Add a charts 6. Set the X and Y inputs to those charts as X = Assigned To and Y = Name/ID ![image](https://github.com/salesagility/SuiteCRM/assets/45397629/dbf519d9-9c5c-4495-b166-b9e13c918ec0) ![image](https://github.com/salesagility/SuiteCRM/assets/45397629/e97f0200-6a66-46ba-83e1-7a565ff74e5f) #### Context <!--- How has this bug affected you? What were you trying to accomplish? --> <!--- If you feel this should be a low/medium/high priority then please state so --> Prevents the reports module from being fully effective. #### Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * SuiteCRM Version used: 7.14.3 * Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Version 124.0.6367.62 (Official Build) (64-bit) * Environment name and version (e.g. MySQL, PHP 7): UKN demo.suitecrm.com * Operating System and version (e.g Ubuntu 16.04): UKN demo.suitecrm.com
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#5187
No description provided.