Example: /ChartDirector/threedscatter

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


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

This example is the version from Fri, 2nd Aug 2012.

Project "threedscatter.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 XYZ data for the 3D scatter chart as 3 random data series dim r as new CDRanSeriesMBS(0) dim xData() as double = r.getSeries(100, 100, -10, 10) dim yData() as double = r.getSeries(100, 0, 0, 20) dim zData() as double = r.getSeries(100, 100, -10, 10) // Create a ThreeDScatterChart object of size 720 x 600 pixels dim c as new CDThreeDScatterChartMBS(720, 600) // Add a title to the chart using 20 points Times New Roman Italic font call c.addTitle("3D Scatter Chart (1) ", "timesi.ttf", 20) // Set the center of the plot region at (350, 280), and set width x depth x // height to 360 x 360 x 270 pixels call c.setPlotRegion(350, 280, 360, 360, 270) '// Add a scatter group to the chart using 11 pixels glass sphere symbols, in '// which the color depends on the z value of the symbol call c.addScatterGroup(xData, yData, zData, "", c.kGlassSphere2Shape, 11, c.kSameAsMainColor) // Add a color axis (the legend) in which the left center is anchored at (645, // 270). Set the length to 200 pixels and the labels on the right side. call c.setColorAxis(645, 270, c.kLeft, 200, c.kRight) // Set the x, y and z axis titles using 10 points Arial Bold font call c.xAxis.setTitle("X-Axis Place Holder", "arialbd.ttf", 10) call c.yAxis.setTitle("Y-Axis Place Holder", "arialbd.ttf", 10) call c.zAxis.setTitle("Z-Axis Place Holder", "arialbd.ttf", 10) // 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