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>
<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;
}
} |
This is better. Is a permentant fix for this scheduled?
You can add my vote to have this fixed! :) And thank you for posting the workaround.
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.
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.