question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bar length in milliseconds

See original GitHub issue

Right now we can specify bar lengths in milliseconds on date axes but this is interpreted in a browser-timezone-dependent manner, which seems like a clear bug that makes this feature unusable. See https://codepen.io/nicolaskruchten/pen/qBOKdQG

Basically, the following figure JSONs (which differ only in x) should probably have the same output, regardless of timezone of browser:

{
"data":[{"base":["2020-02-06 00:00"],"orientation":"h","type":"bar",
"x":[86400000],"y":[1]}],
"layout":{"xaxis":{"type":"date"}
}
}
{
"data":[{"base":["2020-02-06 00:00"],"orientation":"h","type":"bar",
"x":["1970-01-02 00:00"],"y":[1]}],
"layout":{"xaxis":{"type":"date"}}
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
nicolaskruchtencommented, May 20, 2020

Done.

1reaction
alexcjohnsoncommented, May 14, 2020

One thing that will come up then sometimes is that all your y values (in default orientation) would be numbers and all your base values would be dates… I think we should auto-detect the xaxis.type to date in this case… thoughts?

Assuming you meant yaxis.type then yes, that sounds right. Basically, if there’s a base on bar traces, use that for autotype rather than y (in default orientation 😉).

Let’s move this to at least a minor.

As a tightly-scoped issue this is unambiguously a bug. Of course it will need careful testing but I think it’s fine in a patch.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to figure out the length (time in ms) of a bar from bpm and ...
This means that 120 beats = 60 secs · This means 1 beat is 0.5 secs · This means 1 bar is 4...
Read more >
Tempo BPM to MS Calculator | Tuneform
BPM/Tempo 1/4 1/8 1/8T 1/16 1/32 1/64 1/128 60 BPM 1000 ms 500 ms 333 ms 250 ms 125 ms 63 ms 31 ms 61...
Read more >
Song length calculator - toolstud.io
calculate song length from tempo and number of bars. ... Beats-per-minute: 108 BPM; Beats-per-second: 1.8 Hz; Length of 1 beat: 0.5556 second =...
Read more >
Time and length | DryWetMIDI
Bars, beats and fraction ... BarBeatFractionTimeSpan represents a time span as a number of bars and fractional beats (for example, 0.5 beats). Following...
Read more >
How to View Milliseconds in the Display bar in Logic Pro X
If I have helped you, please consider hitting the Subscribe button or buying me a coffee. https://www.buymeacoffee.com/virtualverghini.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found