Hi RakhiS,
Greetings from Syncfusion support.
We have checked your reported query. We suspect that your requirement is to render the pie chart inside the DashboardLayout component.
By default, DashboardLayout is rendered based on parent element dimension. So, set the width and height as 100% for parent element.
Refer the below code snippet.
|
<ng-template #content>
<!--dashboardlayout is render based on parent element dimension. so set the width and height as 100% -->
<div id="pie" style="width:100%;height:100%">
<!--render the pie chart -->
<ejs-accumulationchart id="pieChart" height="100%" width="100%" [legendSettings]="legendSettings"
[tooltip]='tooltip'>
<e-accumulation-series-collection>
<e-accumulation-series [dataSource]="piechart" xName="x" yName="y" innerRadius="20%"
name="Browser" [dataLabel]='datalabel'>
</e-accumulation-series>
</e-accumulation-series-collection>
</ejs-accumulationchart>
</div>
</ng-template>
<style>
.e-accumulationchart {
width:100%;
height:100%;
}
</style> |
Refer the below sample link.
Unfortunately we are unable to get your exact requirement with your provided information. If the provided solution does not met your requirement, then can you please share the detailed information regarding your requirement. It will helpful for us to resolve your issue at earliest.
1. Exact requirement.
Please let us know, if you need any further assistance.
Regards,
Sowmiya.P