-
Notifications
You must be signed in to change notification settings - Fork 31
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
bar width not being correctly calculated #84
Comments
This is because you are using datetime keys, and bar graphs don't work very well with the datetime axis. If you don't set the On your datetime-based graph a grid unit is one hour, but it looks like your bars are spaced 30 minutes apart so they are overlapping. When you set the I don't have a fix for this because bars don't have to be evenly spaced on a datetime axis and could be anywhere. The best way around it is to set |
This is my daily example. I also have weekly and monthly charts, sometimes with inconsistent data (days/hours missing in the middle). If I don't use datetime keys, will the data still be properly spaced with irregular keys? Or should I convert my dates to integers, and then use custom labels that convert them back to date strings? |
Personally, I would stick with datetime keys and used a fixed bar width. Calculating the value for You could use a non-datetime axis, but to make sure gaps in the data leave gaps in the graph you would have to either add |
I'm trying to generate a bar graph with no space between the bars. Instead, the bars overlap. bar_width is not set, and bar_space = 0.
When bar_space = 14, I get this, which is what I expected to get with bar_space = 0.
These are my settings.
The text was updated successfully, but these errors were encountered: