Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am generating an extra field in my JSON feed to use as a filter criteria using Global: PHP.
This works fine.
I only get the rows where the value of the Chart Record is less than 2.
Configure filter criterion:Global: PHP
if ($row->value_2 > 2) {
return true;
};
The [Chart Record] is not defined as a Label OR data in the chart settings and the field is set to "Exclude from display" whilst using the Highcharts Library. The third field appears as a chart element with no label (See Pie.png).
Using Google Charts seems to work.
Maybe I should try .dev
Comment | File | Size | Author |
---|---|---|---|
#2 | Pie.png | 15.7 KB | fgjohnson@lojoh.ca |
#1 | global_php.png | 1.16 KB | fgjohnson@lojoh.ca |
#1 | fields.png | 2.85 KB | fgjohnson@lojoh.ca |
Comments
Comment #1
fgjohnson@lojoh.ca CreditAttribution: fgjohnson@lojoh.ca commentedComment #2
fgjohnson@lojoh.ca CreditAttribution: fgjohnson@lojoh.ca commentedComment #3
fgjohnson@lojoh.ca CreditAttribution: fgjohnson@lojoh.ca commented