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.

Description I noticed this bug [I think it would be a BUG], when I set line bar stacked with only one element and it’s data = [-25.6], the chartjs draw only one bar horizontally extended.

Expected Behavior Bar stacked to the bottom

image

Current Behavior The bar is extended horizontally.

image

Possible Solution I fix this bug in my code by setted the data with empty values… data = [-25.6,]

Steps to Reproduce (for bugs)

Configuration of the dataset=>

backgroundColor:"#f57f17"
borderWidth:1
data:[-25.6]
label:"Order Sell"
type:"bar"
yAxisID:"y-axis-0"

Configuration of the y axes =>

 gridLines: {
        display: true     }

Configuration of the x axe =>

stacked:true
    gridLines: {
        display: true, 
        offsetGridLines: true
     }

Environment Chartjs 2.6.0/2.7.0/2.7.1 Version 63.0.3239.132 Windows 10 64bit

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
simonbrunelcommented, Jan 12, 2018

This is fixed in master (#4994) and will be release in 2.8. You can verify that it works with https://rawgit.com/chartjs/chartjs.github.io/master/dist/master/Chart.min.js

0reactions
simonbrunelcommented, Dec 13, 2018

@ybarbaria you didn’t confirm that this issue was fixed? I will close it for now per my last comment but feel free to reopen if you still experience this bug in the latest version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug in a Stacked-Bar-Chart (V1.6) ?? — oracle-tech
I have got a question concerning stacked bar charts (V 1.6). I created a stacked bar chart (vertical) with 3 series, according to...
Read more >
Stacked bar plot not working correctly - MATLAB Answers
Learn more about bar, stacked, negative values, plot MATLAB. ... I am using Matlab R2018b. Is this a bug in the release version...
Read more >
BUG - Line and Stacked Column Chart different beha...
Hi, I am reporting a bug here on Power BI Service - - Line and Stacked Column Chart The line value behave differently...
Read more >
Stacked bar chart rendering bug in the presence ... - GitHub
Hi, Really enjoying Altair but I've run into a bug when attempt to display stacked bars, some of which contain negative values.
Read more >
How to Create Stacked Bar Plots with Error Bars and P-values
Create a stacked bar plot, add "mean_se" error bars p <- ggbarplot( df, x = "dose", y = "len", add = "mean_se", color...
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