c3js / c3

:bar_chart: A D3-based reusable chart library
http://c3js.org
MIT License
9.34k stars 1.39k forks source link

X-Axis Tick Labels are Visible for Non-Visible Data #1909

Open grumpymonk opened 7 years ago

grumpymonk commented 7 years ago

I have a bar chart, where zooming is enabled, and the X-Axis extent is set to view only the last 5 data values in my domain (e.g., I have 20 data points, I am setting the initial view to view data points 16-20). However, the non-visible data points' tick labels for the "older" data (e.g., data points 15, 14, 13, etc.) are still visible off of the main body of the chart. When panning to the older data, the "newer" data's tick labels do not show up at the far right side.

kueda commented 7 years ago

I believe I'm having the same problem with a zoomable timeseries. Here's a screenshot showing the 2008 label appearing even though the 2008 data does not appear:

screen shot 2017-01-06 at 5 08 54 pm