Cumulative field is doubled in charts

Created on 5 January 2024, 12 months ago
Updated 2 February 2024, 11 months ago

I am using Drupal 8.9 and Charts 8.x-3.5.

I have a view with two fields, Date and Value. I added a cumulative field and selected the value field as the Data field for the cumulative module.

Everything is working as expected if I select the display format of the view to be an unformatted list, but when selecting the display format as Chart and the data label is the date while the field data is the cumulative field, the out will be not the same as the unformatted list, the chart value starts at the value of the cumulative field and sums the other values based on it, for example:

Date: 01-01-2023
Value: 100
Cumulative: 100

Date: 02-01-2023
Value: 50
Cumulative: 150

Date: 03-01-2023
Value: 70
Cumulative: 220

The output of the chart will be as the below:
Date: 01-01-2023
Cumulative: 320

Date: 02-01-2023
Cumulative: 370

Date: 03-01-2023
Cumulative: 440

Can you please help with this?

πŸ’¬ Support request
Status

Needs review

Version

2.0

Component

Miscellaneous

Created by

πŸ‡΅πŸ‡ΈPalestine georgekhair

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024