c3js / c3

:bar_chart: A D3-based reusable chart library
http://c3js.org
MIT License
9.35k stars 1.39k forks source link

How to change the width of a bottom-left legend #2619

Open batgos opened 5 years ago

batgos commented 5 years ago

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 How can i fix it please ? Cause when i change the bar width nothing happen I'm newbi on c3 sorry :(