salesagility / SuiteCRM

SuiteCRM - Open source CRM for the world
https://www.suitecrm.com
GNU Affero General Public License v3.0
4.27k stars 2.03k forks source link

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

Open Mac-Rae opened 2 months ago

Mac-Rae commented 2 months ago

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