chartjs / chartjs/Chart.js

Cannot plot scatter plot in chart having multiple x-axis labels

Open
#11,175 1 comment 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Expected behavior

Scatter plot is not working for multiple x axis labels.

### Current behavior

While plotting scatter plot with single labels(labels will be an array of string or numbers eg: [1,2,3] or ['a','b','c'] ) its working properly, but with multiple x axis labels(labels will be an array of array eg: ["['a1','a2']","['a3','a4']","['a5','a6']"] ) scatter plot is not working.

### Reproducible sample

https://codepen.io/ajmalmajeed/pen/xxzyzNM?editors=0010

### Optional extra steps/info to reproduce

_No response_

### Possible solution

_No response_

### Context

_No response_

### chart.js version

v4.2.0

### Browser name and version

_No response_

### Link to your project

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.