Can't remove space between bars in bar chart
See original GitHub issueHi,
If I create a bar chart with the scales option:
{
scales: {
xAxes: [{
barThickness : 45,
barPercentage: 1.0,
categoryPercentage: 1.0,
}],
}
}
Here is the fiddle https://jsfiddle.net/07pzys9t/ .
barPercentage: 1.0
and categoryPercentage: 1.0
don’t remove the space between the bars in the chart, although, as I understood, they should, as it’s said here:
Any advice on how to achieve this on ChartJS 2.5.0?
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to remove whitespace on chart between columns and ...
For the first char, you need to select the chart and resize the columns area, you might need to remove the chart title...
Read more >How to get Excel Chart Columns with no gaps - AuditExcel
In order to do this you can right click on any one of the data series and choose Format Data Series. You will...
Read more >remove the space between the bars in a bar chart? - MathWorks
You can set the bar width to any fraction between 0 and 1 that you want. 3 Comments. ShowHide 2 older comments.
Read more >Remove spaces between bars in barchart - Stack Overflow
I was able to figure it a solution to this question. I add the part in bold, and that finally allowed me to...
Read more >Remove Spaces between bars in bar chart - Qlik Community
Hi, I had created a bar chart which contains spaces between bars. I need to remove spaces and combine bars. I attached a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You need to remove the
barThickness
property from your configuration. See https://jsfiddle.net/07pzys9t/1/The
barPercentage
andcategoryPercentage
(the default values are 0.9 and 0.8) are used to size the bar only ifbarThickness
is not set.Thanks great, thank you, but how can I then set the width of each bar also? I mean, I still want the bars to be 45 pixels width and be one after the other without any space between two bars.