Secondary axis overwrites first

Created on 21 October 2024, about 1 month ago

If I enable charts_api_example using the chart_chartjs submodule, I get the following example chart:

Based on the data,

      'series_two' => [
        '#type' => 'chart_data',
        '#chart_type' => 'line',
        '#title' => $this->t('8.x-3.x'),
        '#data' => [4330, 4413, 4212, 4431],
        '#color' => '#77b259',
        '#target_axis' => 'y_axis_secondary',
      ],

...the secondary y-axis should be associated with the 4200-4450 scale.

Also, I've now lost the primary y-axis label (Number of Installs).

πŸ› Bug report
Status

Active

Version

5.1

Component

Chart.js integration

Created by

πŸ‡ΊπŸ‡ΈUnited States zerbash

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024