Closed (fixed)
Project:
Charts Twig
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
21 Oct 2025 at 03:52 UTC
Updated:
6 Nov 2025 at 17:59 UTC
Jump to comment: Most recent
Currently, the last parameter ($options), expects a library API-specific array that gets passed to the Chart element's "#raw_options" key - this goes against the flexible spirit of Charts, which should allow users to easily switch between libraries.
The better approach would be to pass a single $definition parameter that contains all the charts settings (and is more flexible) plus any raw options. But we should do this in a way that maintains backward compatibility.
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
Comment #3
andileco commented@nikathone, can you take a look?
Comment #4
andileco commentedComment #6
andileco commentedThank you, @nikathone! I like that you make it work with the original function. I'm happy with this and the code quality checks pass.
Comment #7
andileco commented