Example: /ChartDirector/depthbar

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

/ChartDirector/depthbar


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

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

Project "depthbar.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 data0(-1) as double = array( 100, 125, 245, 147, 67.0) dim data1(-1) as double = array( 85, 156, 179, 211, 123.0) dim data2(-1) as double = array( 97, 87, 56, 267, 157.0) // The labels for the bar chart dim labels(-1) as string = array("Mon", "Tue", "Wed", "Thu", "Fri") // Create a XYChart object of size 500 x 320 pixels dim c as new CDXYChartMBS(500, 320) // Set the plotarea at (100, 40) and of size 280 x 240 pixels call c.setPlotArea(100, 40, 280, 240) // Add a legend box at (405, 100) call c.addLegend(405, 100) // Add a title to the chart call c.addTitle("Weekday Network Load") // Add a title to the y axis. Draw the title upright (font angle = 0) dim t as CDTextBoxMBS t=c.yAxis.setTitle("Average"+EndOfLine.UNIX+"Workload"+EndOfLine.UNIX+"(MBytes"+EndOfLine.UNIX+"Per Hour)") t.setFontAngle(0) // Set the labels on the x axis call c.xAxis.setLabels(labels) // Add three bar layers, each representing one data set. The bars are drawn in // semi-transparent colors. call c.addBarLayer(data0, &h808080FF, "Server # 1", 5) call c.addBarLayer(data1, &h80FF0000, "Server # 2", 5) call c.addBarLayer(data2, &h8000FF00, "Server # 3", 5) // 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.


💬 Ask a question or report a problem