API REFERENCE

print

Prints an inlined snapshot of the chart (Highcharts printChart), brand included. The snapshot goes into a hidden frame of this document that prints itself: the former popup (window.open(…, 'noopener,noreferrer')) always got null back — noopener hides the new window from its opener — so nothing was ever printed, and a popup opened after the awaited export would also meet popup blockers. The frame is built with DOM calls only: the chart title becomes the document title and the image's alt text as plain text (never HTML), and no inline script or handler is needed. Rejects with a ChartLoadError when the type cannot be drawn here.

정의

typescript
print(): Promise<void>

반환 타입: Promise<void>. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.