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

Bars on same timestamp overlaps #536

Open
vjoao opened this issue Jul 15, 2018 · 3 comments
Open

Bars on same timestamp overlaps #536

vjoao opened this issue Jul 15, 2018 · 3 comments
Labels

Comments

@vjoao
Copy link

vjoao commented Jul 15, 2018

I am trying to use a bar chart with a dataset of different classes at the same timestamp.

data: [{
  timestamp: X,
  class: 'A'
},
{
  timestamp: X,
  class: 'B'
},
{
  timestamp: X + 15 min,
  class: 'A'
},
{
  timestamp: X + 15 min,
  class: 'B'
}]

When timestamps are dates, the bars overlap themselves. But when I convert the timestamps to strings, say formatting as HH:mm:ss, they are set side by side, which is how I want them to be.

current:
image

expected:
image

@iljaiwjew
Copy link

iljaiwjew commented Jul 16, 2018

The same problem

@Mavrin
Copy link
Contributor

Mavrin commented Jul 17, 2018

Hi @vjoao! Looks like you need specify dimension type for timestamp field.
I made some expample https://jsfiddle.net/n9aknof0/28/
More about dimensions https://api.taucharts.com/datasource/index.html

@vjoao
Copy link
Author

vjoao commented Jul 17, 2018

Hey @Mavrin, this works great! It is quite hard to find in the docs, though. Different behaviors for different data types on an axis makes me think this is a bug.
Thanks for the effort.

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

No branches or pull requests

3 participants