c3js / c3js/c3

Selecting bars 'above the bar'

Open
#1,109 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

This seems to be something I run into with every charting tool I've ever used - so I'm getting-used to fixing it ;0

There's a problem with selecting/clicking bars which are very short or even 'empty' - because selecting/clicking acts on the visible bar rather than the 'space above the bar' - and there are definately use-cases for wanting to interact with those (and tooltips work with that use-case!)

I hacked a fix into c3_chart_internal_fn.isWithinBar to ignore 'y' position - that suits my purposes but it doesn't consider rotated charts or stacked bar charts - please consider an enhancement to enable interaction with 'empty bars' (an bar option for 'select column/data-only' perhaps?)

I note that the 'event columns' would probably be the simplest way to do this but there may be more things I've not considered with this?

Thanks

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.