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.

2.0: Spacing between bars with percentages set to 1

See original GitHub issue

The border width of the dataset is set to 0. In options:

        scales: {
          xAxes: [{
            barPercentage: 1.0,
            categoryPercentage: 1.0,
            ...
          }]
        }

barchart

There’s still thin lines randomly throughout the chart. This is more noticeable as the number of entries increases (this chart normally has 1024 values).

I’ve also tried setting stacked: true on both axes, but this doesn’t seem to have an impact.

Is there any work around to eliminate this spacing?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
etimbergcommented, May 17, 2016

@cpboyd I made some progress on this tonight. I still need to make sure I haven’t broken anything for bars on time scales and do the same fix for the horizontal bar

Before

before

After

after

0reactions
edumbellcommented, Nov 10, 2020

This bug is back in version version: 2.7.2 - text on the chart is crisp, so it’s not a canvas issue, but it’s like the bars are using “pixels” which are larger than the pixels on my screen (much, much larger if I zoom in). Anyone have a workaround?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to increase or decrease space between bars in origin ...
This lesson is mainly for all BS, MS, M.Phil, PhD students or early career researchers (ECRs) who are studying surface chemistry and ...
Read more >
Graph tip - Changing the width and spacing of columns in ...
Select a data set and enter (at the bottom of the dialog) the percentage of normal spacing you want between that data set...
Read more >
3.6 Adjusting Bar Width and Spacing
3.6.2 Solution ... To make the bars narrower or wider, set width in geom_col() . The default value is 0.9; larger values make...
Read more >
Barchart reducing space between bars
You can set the category and bar percentages to 1: var options = { type: 'bar', data: { labels: ["Red", "Blue", "Yellow", "Green",...
Read more >
How to Make Bars Closer Together in Column Graphs ...
Decreasing this percentage shrinks the empty space between columns by widening the columns themselves. Choosing a zero Gap Width effectively merges all columns ......
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