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.

Floating bar with time as x-axis

See original GitHub issue

hello folks,

i’ve tried out the master version of chart.js and wondered if floating bar with time as x-axis is supported.

i’ve tried data: [{x:'2016-12-25', y:[20, 25]}, {x:'2016-12-26', y:[13, 28]}] but its kinda not working.

any tips?

thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
benmccanncommented, Sep 5, 2019

What if you try it with labels: ['2016-12-25', '2016-12-26'] and data: [[20,25], [13,28]]?

I think that data format might be the only one supported right now although what you tried really should be supported as well. If you or anyone else wants to try adding support for that a PR would be welcome!

0reactions
benmccanncommented, Oct 2, 2019

I responded on the other thread, but posting here as well for anyone else who sees it. The feature is not yet released and will be included in the upcoming 2.9.0 release

Read more comments on GitHub >

github_iconTop Results From Across the Web

Horizontal floating bars with a time y-axis in Chart.js
Mmm it seems my issues are: not using proper axis format for chart.js 3; need to scale the graph myself; need to refer...
Read more >
How to create a bar chart with floating bars to show time ranges?
Easiest way probably is to use a horizontal, stacked bar chart: you need your data in two columns: start and duration; select it,...
Read more >
How to create a floating bar chart in Excel - TechRepublic
A floating bar chart is a visual comparison of distribution. In other words, not all the charted values begin at the same place...
Read more >
Floating Bars in Excel Charts - Peltier Tech
Floating bars can be used to plot many types of data sets. (“Bars” in this usage means “bars”, as Excel calls horizontally oriented...
Read more >
pgfplots bar graph: Bars are floating above the x-axis - TeX
add enlarge y limits={upper=0}, to the second one. – percusse · Thank you very much! · That is, if in this example the...
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