c3js / c3js/c3

axis.x.extent doesn't behave properly when using a time series

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

Description

When charting some simple data over a time series, `axis.x.extent` centres over _half_ of the first and last frames, rather than encompassing the specified range entirely.

Here's a [jsfiddle](http://jsfiddle.net/gg5n3mfr/) showing the example. Note that setting `axis.x.extent` to a two-integer list like `[3, 5]` does nothing. If you have a list of `Date` objects, it appears that you must specify those dates in the extent range. However, when you do, the little grey box that overlays your subchart straddles only half of a column.

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.