Skip to content

[ChartJs] Introduce renderer-agnostic UX Chart component and deprecate UX Chart.js #3461

@zairigimad

Description

@zairigimad

The current symfony/ux-chartjs component is tightly coupled to Chart.js: its PHP model (Chart, ChartBuilderInterface), its Twig helper (render_chart), its Stimulus controller, its events (chartjs:pre-connect, chartjs:connect) and even its npm package name (@symfony/ux-chartjs) all assume Chart.js is the one and only rendering library.
This RFC proposes to:

Introduce a new renderer-agnostic symfony/ux-chart component, inspired by the architecture of symfony/ux-map.
Provide two first-party bridges: symfony/ux-chartjs-chart (Chart.js) and symfony/ux-apexcharts-chart (ApexCharts), with the door open for future bridges (ECharts, Highcharts, Plotly, etc.).
Deprecate symfony/ux-chartjs in 2.x and remove it in 3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    ChartjsRFCRFC = Request For Comments (proposals about features that you want to be discussed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions