- 🇬🇧United Kingdom robcarr Perthshire, Scotland
I had to manually apply the patch (thanks for your work @yujiech), but the functionality generates only the 2 checkboxes, and hides the graph :(
Patch attached for anyone keen to look at this further. Tried in Charts 5.0.13 and D10.3
- Status changed to Closed: won't fix
12 days ago 4:55pm 10 December 2024 - 🇨🇦Canada nikathone Ontario
I looked at the code and for me this feels like a limited use case. There is a way this can be accomplished from a custom module:
- Implement a hook_library_info_alter and swap the
charts/modules/charts_highchartsjs/charts_highcharts.js
with a custom js file - Or add a custom js file that override the chart configurations using javascript. Please see the example of the library declaration at https://git.drupalcode.org/project/charts/-/blob/5.1.x/modules/charts_ap... and the javascript file overriding the config before highcharts load them can be found at https://git.drupalcode.org/project/charts/-/blob/5.1.x/modules/charts_ap.... Note the javascript weight in the library file.
Please let us know if this approach doesn't work and we can try to see if the charts module can be updated to include more method to alter the config file.
- Implement a hook_library_info_alter and swap the