This syntax is wrong, field and index must be part of the body, not the path:
4 ways to display charts in SharePoint:
1:File Viewer Web Part
2:Quick Chart web part
3:Embed Power BI Report
4:Embed Code Web Part
For more detail information, please refer to this article:https://...