Platforms to show: All Mac Windows Linux Cross-Platform

/ChartDirector/multidepthpie


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/multidepthpie

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

Project "multidepthpie.xojo_binary_project"
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 pie chart dim data(-1) as double = array(72.0, 18, 15, 12) // The labels for the pie chart dim labels(-1) as string = array("Labor", "Machinery", "Facilities", "Computers") // The depths for the sectors dim depths(-1) as double= array(30.0, 20, 10, 10) // Create a PieChart object of size 360 x 300 pixels, with a light blue (DDDDFF) // background and a 1 pixel 3D border dim c as new CDPieChartMBS(360, 300, &hddddff, -1, 1) // Set the center of the pie at (180, 175) and the radius to 100 pixels c.setPieSize(180, 175, 100) // Add a title box using 15 pts Times Bold Italic font and blue (AAAAFF) as // background color dim t as CDTextBoxMBS t=c.addTitle("Project Cost Breakdown", "timesbi.ttf", 15) t.setBackground(&haaaaff) // Set the pie data and the pie labels c.setData(data,labels) // Draw the pie in 3D with variable 3D depths c.set3D(depths) // Set the start angle to 225 degrees may improve layout when the depths of the // sector are sorted in descending order, because it ensures the tallest sector // is at the back. c.setStartAngle(225) // 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...