Introducing new PDF and PNG Previews
With our new PDF and PNG preview UI, users can choose exactly which nodes to export. This enables more precise and personalized exports.
To enable this functionality, add new menu items:
javascript
menu: {
pdfpreview: { text: 'PDF Preview' },
pngpreview: { text: 'PNG Preview' }
},You can also open the preview from a function:
javascript
chart.pdfPreviewUI.show({
pages: [
{ nodeId: 3 },
{ nodeId: 4 }
]
});Go to this documentation page to learn more.