Set Data Table in Chart Elements Using Aspose.Slides for Node.js

Hi team,

we are using “aspose.slides.via.java”

Can you please assist how we can set this chart table property to display.
image.png (4.9 KB)

image.png (12.5 KB)

And with proper borders for the cells and tables like in the screenshot attached.

@karanmarsh,
Thank you for contacting support. I am working on the question and will get back to you soon.

@karanmarsh,
To add a data table to chart elements, please use the following code snippet:

chart.setDataTable(true);
chart.getChartDataTable().setBorderOutline(true);
chart.getChartDataTable().setBorderHorizontal(true);
chart.getChartDataTable().setBorderVertical(true);