ChartExportEx

SpaceObServer.ChartExportEx

Description

Works like Description, but you can configure the dimensions of the exported image.

Syntax

ChartExportEx (ExportPath : <String>, ChartType : <String>, Width : <Integer>, Height : <Integer>)

Parameters

ExportPath

The full path of the export file (including the exported file name). You can use environment variables as well as “%DATE%” and “%TIME%” in the file path.

ChartType

Defines the chart type to be exported. Available chart types are:

  • piechart: Exports the pie chart.

  • barchart: Exports the bar chart.

  • treemap: Exports the tree map chart.

  • historychart: Exports the history chart.

  • sizeoffileschart: Exports the “Size of Files” chart.

  • ageoffileschart: Exports the “Age of Files” chart.

  • userspiechart: Exports the pie chart of the users statistics.

  • usersmap: Exports the tree map chart of the users statistics.

  • extensionspiechart: Exports the pie chart of the extensions statistics.

  • extensionsmap: Exports the tree map chart of the extensions statistics.

Width

The width of the exported image in pixel.

Height

The height of the exported image in pixel.

Example

#PowerShell
$SOS.ChartExportEx("C:\Temp\SOS\barchart.bmp", "barchart", "800", "600")
'VBS
SOS.ChartExportEx "C:\Temp\SOS\barchart.bmp", "barchart", 800, 600

Exports the bitmap graphic of a bar chart to “C:TempSOSbarchart.bmp” with a resolution of 800x600 pixel.