Improve bar chart borderRadius
See original GitHub issueAs you can see, the endingShape & startingShape are very ugly for bar chart.
plotOptions: {
bar: {
horizontal: false,
columnWidth: '50%',
distributed: true,
endingShape: 'rounded',
startingShape: 'rounded',
},
},
Please change ‘flat’ or ‘rounded’ to number (or add the possibility to use number) to create custom border radius for bar column. For example (similar in HighCharts): https://github.com/highcharts/rounded-corners & https://jsfiddle.net/BlackLabel/tdp1y0wb or https://github.com/bellstrand/highcharts-border-radius
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Bar Chart Border Radius | Chart.js
Open source HTML5 Charts for your website. ... Bar Chart Border Radius ... title: { display: true, text: 'Chart.js Bar Chart' } }...
Read more >How to put rounded corners on a Chart.js Bar chart
Starting on Chart.js v3 you can just specify borderRadius: NUMBER on the dataset.
Read more >Stacked bar chart with borderRadius only rounds the last dataset
Expected Behavior. All bars should be rounded on all edges. Using borderRadius=500, and borderSkipped=false. On chartjs 3.1.0
Read more >plotOptions.bar.borderRadius | highcharts API Reference
The maximum allowed pixel width for a column, translated to the height of a bar in a bar chart. This prevents the columns...
Read more >Bar Charts | Google Developers
Like all Google charts, bar charts display tooltips when the user hovers over the data. For a vertical version of this chart, see...
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 FreeTop 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
Top GitHub Comments
Can borderRadius accept percentage @junedchhipa? The current implementation looks weird especially when the column width changes.
Here is what I want. Basically perfect round corners.
But here it is when the column width becomes too large.
It gets even weirder when the column width gets too small.
Thx for the great lib btw.
Edit: I suppose the workaround for this is to set the responsive options accordingly (which is what I’m doing currently). But wouldn’t it be great if it just works as expected without tuning more options.
+1
Percentages for the borderRadius will make way more sense. Having these same issues as well.