Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeseries cuts off last date on the x-axis #985

Closed
pwshugar opened this issue Feb 10, 2015 · 4 comments
Closed

timeseries cuts off last date on the x-axis #985

pwshugar opened this issue Feb 10, 2015 · 4 comments

Comments

@pwshugar
Copy link

you can see on the c3 site also.
http://c3js.org/samples/timeseries.html

@snkashis
Copy link

+1, seeing this behavior too.

@masayuki0812
Copy link
Member

Please use padding.right to set enough value to show it.
I don't think the padding should be calculated by tick text because its position and width will be change according to the data loaded in the chart and the domain currently shown.

@masayuki0812
Copy link
Member

Let me close at the moment.

@boatrite
Copy link

Just as a general note to anyone else looking for a solution to this problem:
I couldn't get (forgive the coffeescript) this to work

x:
  type: 'timeseries'
  padding:
    right: 6

so instead I put the padding on the chart

c3.generate
  padding:
    right: 6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants