chartjs / chartjs/Chart.js

"stacked" option has no effect on radial axis

Open
#10,630 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

The [documentation](https://www.chartjs.org/docs/latest/axes/radial/linear.html) says the `stacked` property is available for all axes. When using it on a radar chart, the same behavior is expected as in line charts: the various datasets are stacked. Only, the stacking should happen on the radial axis instead of the y-axis since it's a radar chart.

### Current behavior

Currently, adding `scales: { r: { stacked: true } }` to the options of the radar chart has no effect at all. The datasets are not stacked.

### Reproducible sample

https://codepen.io/jcrejgpdigjijb/pen/poLmeop

### Optional extra steps/info to reproduce

_No response_

### Possible solution

_No response_

### Context

_No response_

### chart.js version

v3.9.1

### Browser name and version

Firefox 103.0.2

### 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.