Platforms to show: All Mac Windows Linux Cross-Platform

/ChartDirector/simplepyramid


Required plugins for this example: MBS ChartDirector Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /ChartDirector/simplepyramid

This example is the version from Sun, 17th Mar 2012.

Project "simplepyramid.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
EventHandler Sub Open() // The data for the pyramid chart dim data(-1) as double = array(156.0, 123, 211, 179) // The labels for the pyramid chart dim labels(-1) as string = array("Funds", "Bonds", "Stocks", "Cash") // Create a PyramidChart object of size 360 x 360 pixels dim c as new CDPyramidChartMBS(360, 360) // Set the pyramid center at (180, 180), and width x height to 150 x 180 pixels c.setPyramidSize(180, 180, 150, 300) // Set the pyramid data and labels c.setData(data, labels) // Add labels at the center of the pyramid layers using Arial Bold font. The // labels will have two lines showing the layer name and percentage. call c.setCenterLabel("{label}"+EndOfLine.unix+"{percent}%", "arialbd.ttf") // 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
End Project

The items on this page are in the following plugins: MBS ChartDirector Plugin.


The biggest plugin in space...