ChartExport¶
Description¶
Exports one of graphs shown in SpaceObServer into a graphic file.
Syntax¶
ChartExport (ExportPath : <String>, ChartType : <String>)
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.
Example¶
1.)
$SOS.ChartExport("C:\Temp\SOS\barchart.bmp", "barchart")
SOS.ChartExport "C:\Temp\SOS\barchart.bmp", "barchart"
Exports the bitmap graphic of a bar chart to “C:\Temp\SOS\barchart.bmp”.
2.)
$SOS.ChartExport("C:\Temp\SOS\piechart.jpg", "piechart")
SOS.ChartExport "C:\Temp\SOS\piechart.jpg", "piechart"
Exports the JPEG graphic of a pie chart to “C:\Temp\SOS\piechart.jpg”.
3.)
$SOS.ChartExport("C:\Temp\SOS\historychart.gif", "historychart")
SOS.ChartExport "C:\Temp\SOS\historychart.gif", "historychart"
Exports the graphic of a history chart to “C:\Temp\SOS\historychart.gif”.
4.)
$SOS.ChartExport("C:\Temp\SOS\ageoffileschart.png", "ageoffileschart")
SOS.ChartExport "C:\Temp\SOS\ageoffileschart.png", "ageoffileschart"
Exports the graphic of a age of files chart to “C:\Temp\SOS\ageoffileschart.png”.
5.)
$SOS.ChartExport("C:\Temp\SOS\sizeoffileschart.jpeg", "sizeoffileschart")
SOS.ChartExport "C:\Temp\SOS\sizeoffileschart.jpeg", "sizeoffileschart"
Exports the graphic of a size of files chart to “C:\Temp\SOS\sizeoffileschart.jpeg”.