c3js / c3js/c3

x axis tick count not working on multi line timeseries

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

Description

I have two datasets on a timeseries chart. To prevent the x axis from becoming crowded I would like to limit the tick count. However if I use the tick count option, ticks stop working. Only the latest tick seems to be drawn at all.

Don't know if it matters but as I'm using millisecond timestamps, the two datasets rarely share the same x value. I use data.flow for loading new data.

The same problem occurs whether the datasets have their own x axes like this:
xs: {
'data1': 'x_data1',
'data2': 'x_data2'
},

or are put on the same x axis.

Here's a jsfiddle:
https://jsfiddle.net/o88ewzx1/

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.