How to render the Angular Charts component inside Grid?
Description
This article shows how to render the Angular Charts component inside the Grid.
Solution
The Grid component is made up of rows and columns, and you can add a chart component to one of the columns by adding it to the ng-template property of that column within the grid.
To display other chart component properties inside the grid, you need to bind the data to the chart’s data source. Then, you can render the desired chart component properties inside the grid cells. You can display additional information alongside the chart, such as labels, annotations, or legend items.
Code Snippet
The following code shows how to render the chart inside the grid.
<ejs-grid>
<e-columns>
<e-column>
<ng-template #template>
<ejs-chart></ejs-chart>
</ng-template>
</e-column>
</e-columns>
</ejs-grid>
The following image illustrates the output of the above code.
Conclusion
I hope you enjoyed learning how to render the Angular Charts component inside Grid.
You can refer to our Angular Charts feature tour page to learn about its other features and documentation, and how to quickly get started for configuration specifications. You can also explore our Angular Charts example to understand how to create and visualize data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comment section below. You can also contact us through our support forums, support portal, or feedback portal. We are always happy to assist you!