c3js / c3js/c3

D3 5.16.0: data.labels.format regression

Open
#2,882 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

Found a regression in [data.labels.format](https://c3js.org/reference.html#data-labels-format):
The j parameter used to be the sub index of the data point but is now an array of SVGTextElement. Might be a regression due to the new d3.js version.
Below the CodePen showing the issue.

Before (D3 3.5.16): https://codepen.io/florentmontesano/pen/PoxoBYG
After (D3 5.16.0): https://codepen.io/florentmontesano/pen/jOQOKjG

* **C3 version**: 0.7.20
* **D3 version**: 5.16.0
* **Browser**: Chrome 114.0.5735.110
* **OS**: Windows 10

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.