Platforms to show: All Mac Windows Linux Cross-Platform

/ChartDirector/cylinderbar


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

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

Project "cylinderbar.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 bar chart dim data(-1) as double = array(85.0, 156, 179.5, 211, 123) // The labels for the bar chart dim labels(-1) as string = array("Mon", "Tue", "Wed", "Thu", "Fri") // Create a XYChart object of size 400 x 240 pixels. dim c as new CDXYChartMBS(400, 240) // Add a title to the chart using 14 pts Times Bold Italic font call c.addTitle("Weekly Server Load", "timesbi.ttf", 14) // Set the plotarea at (45, 40) and of 300 x 160 pixels in size. Use alternating // light grey (f8f8f8) / white (ffffff) background. call c.setPlotArea(45, 40, 300, 160, &hf8f8f8, &hffffff) // Add a multi-color bar chart layer dim layer as CDBarLayerMBS dim colors(-1) as integer layer = c.addBarLayer(data, colors) // Set layer to 3D with 10 pixels 3D depth layer.set3D(10) // Set bar shape to circular (cylinder) layer.setBarShape(c.kCircleShape) // Set the labels on the x axis. call c.xAxis.setLabels(labels) // Add a title to the y axis call c.yAxis.setTitle("MBytes") // Add a title to the x axis call c.xAxis.setTitle("Work Week 25") // 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...