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

Chaning the width of bars with datetime x-axis? #3263

Closed
ed-parry opened this issue Sep 6, 2016 · 1 comment · Fixed by #4545
Closed

Chaning the width of bars with datetime x-axis? #3263

ed-parry opened this issue Sep 6, 2016 · 1 comment · Fixed by #4545

Comments

@ed-parry
Copy link

ed-parry commented Sep 6, 2016

https://jsfiddle.net/02muyr4x/1/

I have a graph which is linear on the y-axis and datetime on the x-axis. The majority of data is represented nicely with the line chart type, but some data will need to use the bar chart type. The example in the above jsfiddle shows timestamps every 15 minutes, with the bar chart showing data for each of these. My question is, is it possible to change the width of these bars? I'm not sure what is controlling the space between them, or why there is a space between them at all? I'm aware of categorySpacing and categoryPercentage, but neither of these appear to have any effect? Is there something I'm missing?

@etimberg
Copy link
Member

etimberg commented Sep 6, 2016

@ed-parry those settings only work the 'category' scale on the x axis. There are a bunch of issues open related to bars and time axes. Unfortunately, there is no good single solution at the moment. The category scale works well because the distance between grid lines is constant and bars need to fill that space. In the time scale, this is not the case and it means that bars could very well overlap because they are too close together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants