Accumulation chart initial sizing on Dashboard layout

The accumulation charts when used in a dashboard tile initially sizes outside the bounds of the tile overwriting adjacent tiles. See attached video.


        <SfAccumulationChart EnableBorderOnMouseMove="false" EnableSmartLabels="true" Width="100%" Height="100%" @ref=@AccumulationObj>

            <AccumulationChartEvents OnExportComplete=@GetChartImage Loaded=@OnLoadedAccumulation TooltipRender="TooltipRender"></AccumulationChartEvents>

            <AccumulationChartTooltipSettings Enable="true"></AccumulationChartTooltipSettings>

            <AccumulationChartLegendSettings Visible="false"></AccumulationChartLegendSettings>

            <AccumulationChartSeriesCollection>

                <AccumulationChartSeries [email protected] XName="Response" YName="Value" Name="Responses" PointColorMapping="SliceColour" StartAngle="60" InnerRadius="0%">

                    <AccumulationChartAnimation Enable=@AccumlationAnimation />

                    <AccumulationDataLabelSettings Visible="true" Name="Response" Position="AccumulationLabelPosition.Outside"></AccumulationDataLabelSettings>

                </AccumulationChartSeries>

            </AccumulationChartSeriesCollection>

        </SfAccumulationChart>


<style>

.e-chart {

        width: inherit !important;

        height: inherit !important;

}


.e-accumulationchart {

        width: inherit !important;

        height: inherit !important;

    }

</style>


Attachment: 20210706_11h42_35_26b0f7b0.zip

8 Replies

DG Durga Gopalakrishnan Syncfusion Team July 7, 2021 03:12 PM UTC

Hi Michael, 

Greetings from Syncfusion. 

We request you to render the chart once dashboard layout is rendered using Created event. We have prepared sample based on your requirement. Please check with below snippet and sample. 

<SfDashboardLayout> 
    <DashboardLayoutEvents Created="Created"></DashboardLayoutEvents> 
        <DashboardLayoutPanels> 
                   <DashboardLayoutPanel Id="Panel1"> 
                            <ContentTemplate> 
                                @if (initial) 
                                { 
                                <div style="height:100%; width:100%;"> 
                                    <SfAccumulationChart></SfAccumulationChart> 
                                </div> 
                                } 
                            </ContentTemplate> 
                    </DashboardLayoutPanel> 
      </DashboardLayoutPanels> 
</SfDashboardLayout> 
@code{ 
  public bool initial { get; set; } 
  public void Created() 
    { 
        initial = true; 
    } 
} 


Please revert us if you have any concerns. 

Regards, 
Durga G


MA Michael Aston July 19, 2021 03:43 PM UTC

This is better. Is a permentant fix for this scheduled?



DG Durga Gopalakrishnan Syncfusion Team July 20, 2021 03:24 PM UTC

Hi Michael, 

We will check this and update the details within two business days(22nd July 2021). We appreciate your patience until then. 

Regards, 
Durga G


DG Durga Gopalakrishnan Syncfusion Team July 22, 2021 02:21 PM UTC

Hi Michael, 

We have already logged a feature request on “To change architecture of Dashboard layout”. This feature will be included in our upcoming Volume 3 Main Release which is expected to be rolled out at end of September 2021. You can keep track of the feature from the feedback portal below.  
  
  
If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.  
 
Regards, 
Durga G 



DG Durga Gopalakrishnan Syncfusion Team October 5, 2021 03:33 PM UTC

Hi Michael, 

Currently, we have not provided support to render completely before the OnAfterRender Razor life cycle method. This feature will be included in any one of our upcoming releases. Generally, we will plan features based on customer count, feature rank, and wish list plan for some features.  Since we do not face any major problems with other components rendering with Dashboard Layout panels, we suggest you to use the provided work around.  
  
We will update the status in the feedback once it is planned for any one of the upcoming releases.  
  

Kindly revert us if you have any concerns. 

Regards, 
Durga G 



BR Bruce January 19, 2023 04:04 PM UTC

You can add my vote to have this fixed!  :)  And thank you for posting the workaround.



BR Bruce replied to Durga Gopalakrishnan January 19, 2023 04:13 PM UTC

Hello, I'm having the same problem and the fix is no longer working.  As soon as I resize the browser window it snaps into place just fine.



DG Durga Gopalakrishnan Syncfusion Team January 25, 2023 12:49 PM UTC

Hi Bruce,


We have ensured the reported scenario in latest version with chart and accumulation chart. Charts are resized properly based on parent element size at initial rendering and also while resizing the browser window. We have attached the tested sample and screenshots for your reference.


Initial Rendering



After Window Resize



Sample : https://www.syncfusion.com/downloads/support/directtrac/general/ze/ChartsResize69850545.zip


If you are still facing problem, please try to replicate an issue in above sample or share us issue reproduced sample to validate this case further from our end.


Regards,

Durga Gopalakrishnan.


Loader.
Up arrow icon