Blazor Accumulation Chart whitespace padding problem

Hi Support

Is there any way to reduce the heavy white padding surrounding a blazor sfaccumulation Chart?



<SfAccumulationChart Width="99%" Height="99%">
        <AccumulationChartAnnotations>
            <AccumulationChartAnnotation X=@RenderImagePosition Y=@RenderImagePosition
                                         CoordinateUnits="@Syncfusion.Blazor.Charts.Units.Pixel"
                                         Region="@Syncfusion.Blazor.Charts.Regions.Chart">
                <ContentTemplate>
                    @if (!string.IsNullOrEmpty(ImageRender))
                    {
                        <img src="data:image/png;base64, @ImageRender" style="position: relative; border-radius:50%;width:100%" />
                    }
                </ContentTemplate>
            </AccumulationChartAnnotation>
        </AccumulationChartAnnotations>
        <AccumulationChartSeriesCollection>
            <AccumulationChartSeries InnerRadius="@InnerRadius" PointColorMapping="Color" DataSource="@ShiftRegister1" XName="TimeDescription" YName="Hours" Name="TimeDescription">
                <AccumulationChartSeriesBorder Width="1" Color="#FFFFFF"></AccumulationChartSeriesBorder>
            </AccumulationChartSeries>
        </AccumulationChartSeriesCollection>
        <AccumulationChartLegendSettings Visible="false"></AccumulationChartLegendSettings>
    </SfAccumulationChart>



1 Reply 1 reply marked as answer

SM Srihari Muthukaruppan Syncfusion Team December 16, 2020 10:00 AM UTC

Hi Laurence, 
 
We have analysed your query. From that, we would like to let you know that the chart is responsive with respect to the width and height of its parent element, if its zero, then it will render with its default size(600 * 450). Hence we suggest you to provide width and height as inherit to achieve the height and width of parent div. We have also attached the code snippet for your reference. Please find the below code snippet, and screenshot. 
 
 
Screenshot: 
 
Let us know if you have any concerns. 

Regards, 
Srihari

Marked as answer
Loader.
Up arrow icon