Refactor to pass a single parameter while maintaining backward compatibility

Created on 21 October 2025, 8 days ago

Problem/Motivation

Currently, the last parameter ($options), expects a library API-specific array that gets passed to the Chart element's "#raw_options" key - this with the flexible spirit of Charts, which should allow users to easily switch between libraries.

Proposed resolution

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.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States andileco

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024