Database Reference
In-Depth Information
8.
Set up a form to place the chart onto and show it:
$form = New-Object Windows.Forms.Form -property `
@{ Text=$chartTitle.Text; Width=900; Height=600;
StartPosition = [Windows.Forms.FormStartPosition]::CenterScree
n }
$form.controls.add($Chart)
9. Save and open an image of the rendered chart if so conigured:
if ($outputFile -and $outputFormat) {
$chart.SaveImage($outputFile, $outputFormat)
if ($openImage) { ii $outputFile }
}
10. If conigured, show the chart on a windows form:
if ($interactive) {
$form.Add_Shown({$Form.Activate()})
$form.ShowDialog()
$form.Dispose()
}
11. Change the directory to the location of Visualize.ps1 and run the script.
The result is as follows:
 
Search WWH ::




Custom Search