Problem/Motivation

Sometimes with aggregation we can end up with only one row representing 100percent of what we want to display.

Steps to reproduce

For example we can have a field (A) using an average aggregation and the result is 57.3 for example. We can then create a custom text or use the view simple math field (B) module to display the difference. B = 100 - A = 42.7

Proposed resolution

Allow user to select both column A and B as data provider then adjust the code in the chart style plugin to check if only one row is supposed to be rendered then loops through the columns make them as data row.

Remaining tasks

Submit a patch or merge request.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Issue fork charts-3221790

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

nikathone created an issue. See original summary.

  • andileco committed e97084b on 5.0.x
    Issue #3221790 by nikathone: Allow the creation of a pie chart from a...
andileco’s picture

Status: Active » Fixed

Thank you, @nikathone!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.