c3js / c3js/c3

Apply Padding at yForLegendRect

Open
#2,722 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

Currently there is a fixed value used for `yForLegendRect`:

```
yForLegendRect = function yForLegendRect(id, i) {
return yForLegend(id, i) - 5;
};
```

But the `paddingTop` can be changed and should be used here imho:
```
yForLegendRect = function yForLegendRect(id, i) {
return yForLegend(id, i) - (paddingTop + 1);
};
```

Am I right?

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.