Static Functions

Root static functions of PieChart Component

NameParametersReturnsDescription
exportImage
  • chart

    : IPieChart | IChart
  • type

    : ExportType
  • fileName

    : string
  • void

    Exports the given chart as an image file in the specified format.


    Params:
  • chart: The chart instance to export.The chart must be initialized and contain a valid element. If not,the export operation is skipped.
  • type: The desired export format.
  • fileName: The name of the exported file (without extension).
  • exportPDF
  • chart

    : IPieChart | IChart
  • fileName

    : string
  • orientation?

    : PdfPageOrientation
  • header?

    : IPdfTextArgs
  • footer?

    : IPdfTextArgs
  • void

    Exports the given chart as a PDF document.


    Params:
  • chart: The chart instance to export.The chart must be initialized and contain a valid element. If not,the export operation is skipped.
  • fileName: The name of the exported PDF file (without extension).
  • orientation: Optional page orientation forthe exported PDF document. If not specified, the default orientation is used.
  • header: Optional header configuration for the PDF.Specifies the header text, font size, and drawing position.
  • footer: Optional footer configuration for the PDF.Specifies the footer text, font size, and drawing position.
  • print
  • chart

    : IPieChart | IChart
  • void

    Opens the provided chart in a new browser window and triggers the browser's print dialog.


    Params:
  • chart: The chart instance to print.This must be a fully initialized chart object containing a valid elementproperty that represents the chart's root DOM node.