c3js / c3js/c3

Bar items don't resize

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

Description

Hi,

I have a timeseries barchart with 30 items on it. when I use the range function to set a min and max(date picker option) the bars on the chart stay the same size. so if I select a 4 day range I end up with 4 bars only a few pixels wide spread over the whole distance of the chart. Is there a way to grow and shrink the bars so they always have the same gap between each bar?

another small thing I noticed that might be of use, the legend text on my chart was being cutoff due to an overflow:hidden on the chart. After spending some time I noticed that on the main div for my page I had letter-spacing set to 1. this set the legend text to have to same spacing and therefore ran off the page, might be worth defaulting that in the css as it was tricky to find.

cheers,
joey

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.