Less Padding/Margin for Pie/Donut Charts
See original GitHub issueIs your feature request related to a problem? Please describe.
We use stencil-apexcharts
for your charts. The charts look really good!!!
But in our opinion as described already in this issue #471 there are to margin/padding for your charts. for sure on pie and radialBar charts. If you have not a lot of space like on mobile devices you need to minimize paddings and margins.
The inner padding of an chart should be customizable, from there all charts (at least radialBar) made use of the container space allowed to it.
So we hope you can do some improvements on this point.
Thx
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Serie labels of pie/donut chart not completely shown - Telerik
Hello, the labels of pie/donut chart are not completely shown under ... is no a better workaround (except adjusting labels padding / margin...
Read more >Remove padding or margins from Google Charts
This will indeed solve the "excessive" padding/margin/whitespace problem. However, if you wish to include axes labels and/or a legend you will need to...
Read more >Pie and Doughnut Charts - FusionCharts
Pie and Donut Charts are great tools for visualizing Part-to-whole relationships in a dataset. This handy guide teaches all about making pie and...
Read more >the C3 reference - C3.js | D3-based reusable chart library
Set padding for x axis. If this option is set, the range of the x axis will increase/decrease by the values. If no...
Read more >anychart.charts.Pie class
anychart.charts.Pie class | Pie (Donut) chart class. | AnyChart API Reference.
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
Cross-posting this here in case it helps someone who lands on this Issue.
Using a
radialBar
chart, we wanted to eliminate the top and bottom padding/margins. Usingchart.offsetY
helped a bit, but only for the top margin.Inspired by this comment, I was able to crop out unnecessary top and bottom margins using negative values for
grid.padding.top
andgrid.padding.bottom
. You can do something similar with the left and right padding as well. My code ended up looking something like this:Hope this helps! 😁
Yeah, that looks like a lot of unwanted space 😃 Currently, the radial-bar charts attempt to make the width/height equal resulting in a square (which is not what everyone would want).
I will look at how this can be controlled.