You find this example project in your Plugins Download as a Xojo project file within the examples folder: /ChartDirector/simpleradar
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
End Class
Class PicWindow Inherits Window
EventHandler Sub Open()
// The data for the chart
dim data(-1) as double = array(90, 60, 65, 75, 40.0)
// The labels for the chart
dim labels(-1) as string = array("Speed", "Reliability", "Comfort", "Safety", "Efficiency")
// Create a PolarChart object of size 450 x 350 pixels
dim c as new CDPolarChartMBS(450, 350)
// Set center of plot area at (225, 185) with radius 150 pixels
call c.setPlotArea(225, 185, 150)
// Add an area layer to the polar chart
call c.addAreaLayer(data, &h9999ff)
// Set the labels to the angular axis as spokes
call c.angularAxis.setLabels(labels)
// Output the chart
Backdrop=c.makeChartPicture
End EventHandler
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&Ablage"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Bearbeiten"
MenuItem EditUndo = "&Rückgängig"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "&Ausschneiden"
MenuItem EditCopy = "&Kopieren"
MenuItem EditPaste = "&Einfügen"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "&Alles auswählen"
End MenuBar