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.


The biggest plugin in space...