Hook to preprocess data before Chart is rendered ?

Created on 19 March 2024, 8 months ago

We have a case where the user will upload some CSV that will contain some extra rows with title and legend and we would like to being able to filter them out.

I tried using hook_chart_alter() but it presents datas that are already digested and are now incomplete as the imported misinterpreted the title in my CSV and retrieved only one data label instead of many.
Thus the data is lost during this step.

Is there a better way to exploit the raw data from the CSV import before it's getting crunched and arrive at this hook level ?

Thank you

πŸ’¬ Support request
Status

Active

Version

5.0

Component

Code

Created by

πŸ‡«πŸ‡·France tostinni

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

Comments & Activities

Production build 0.71.5 2024