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.

Bars sizes are rounded and don't take the whole chart area

See original GitHub issue

Bars lines in Bar chart do not cover all area of a chart (SVG element). Their sizes are rounded. That’s why we can see gaps on the left and right. This screenshot shows this issue comparing Histograms with Timeline

Screenshots image

To reproduce this you can use for example width=200 and 92 child items

Expected behavior Bars should take all space from left to right. The dimensions are integers <g transform="translate(8, 20)">. But float numbers are expected

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Firefox
  • Version 0.61.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
wyzecommented, Nov 18, 2020

This was added in #1282. You can use indexScale={{ type: 'band', round: false }}. This will be available in the next version.

0reactions
constgencommented, Nov 13, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

The dangers of rounded bar charts. - Data School
Proportionality. The other main issue of rounding your bars is it misrepresents the proportions of each value. Consider the sales of Jon and...
Read more >
How to Create Rounded Bar Charts - YouTube
In this example, I take a standard bar chart and show you how to round off the edges. Download the workbook on my...
Read more >
How to Create Rounded Bars in Tableau - InterWorks
I will walk you through both of them. First, we have to build the bar chart. We are going to use the Global...
Read more >
Change the shape fill, outline, or effects of chart elements
You can instantly change the look of chart elements (such as the chart area, the plot area, data markers, titles in charts, gridlines,...
Read more >
Using bar charts - Amazon QuickSight - AWS Documentation
Bar charts show up to 2,500 data points on the axis for visuals that don't use group or color. For visuals that do...
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