Skip to main content
A newer version of this page is available. .

Export

Set the BootstrapUIWidgetExportSettings.Enabled property to true to allow printing or exporting a chart control’s content. When printing is enabled, the control displays a menu button providing access to the available printing/exporting options.

BootstrapCharts-ExportButton

The following export formats are supported:

  • PNG
  • PDF
  • JPEG
  • SVG
  • GIF

You can manually specify the export formats using the BootstrapUIWidgetExportSettings.Formats property.

Exporting/Printing Via API

You can print or export a chart using the API the client chart object exposes.

Call the BootstrapUIWidgetBase.Print method to print the chart using the client browser’s printing engine. Call the BootstrapUIWidgetBase.ExportTo method to export the chart to the specified format and start downloading the resulting document.

function onExportClick() {
    massChart.ExportTo("png", "mass_chart");
}
function onPritClick() {
     massChart.Print();
}
See Also