c3js / c3js/c3

How to change the width of a bottom-left legend

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

Hello,
I would like to change the size of my legend cause after using a position inset with bottom-left my legend doesn't have the same space between element:
`legend: {
position: 'inset',
padding: 10,
inset: {
anchor: 'bottom-left',
x: -5,
y: -50 - (20 * (this.selectedData.length - 2)),
step: 1
},
item: {
onmouseover: (id) => this.mouseOverLegendItem(id),
onmouseout: (id) => this.mouseOutLegendItem(id),
onclick: (id) => this.onmouseClickLegendItem(id)
}
},
bar: {
width: 30
},`
![image](https://user-images.githubusercontent.com/9460795/58431609-d9e77400-80ae-11e9-97c6-9efbd89bd558.png)
How can i fix it please ? Cause when i change the bar width nothing happen
I'm newbi on c3 sorry :(

* **C3 version**:"^0.6.13",
* **D3 version**: "^5.9.1"
* **Browser**:
* **OS**:

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.