c3js / c3js/c3

Assigning a chart height independently of the legend height

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

Description

Hi,

I have several bar charts showing on the same page. Each one has a different legend, and some legends are quite bigger than others. Since I can only define the height for the whole image, the charts with a bigger legend become smaller than the other.

The figure above illustrates the issue:

![captura de tela_2018-01-10_16-01-39](https://user-images.githubusercontent.com/1626935/34787900-09be6bae-f620-11e7-8e5b-c11e2816d75e.png)

Is there any possibility of assigning a fixed height to the chart without including the legend height in this size? Or would this be a feature request, maybe defining x-axis height/y-axis width?

Thanks for the attention and for this awesome library.

best,
alan

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.