Example: /ChartDirector/High Resolution Chart Examples/pyramidrotation

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/High Resolution Chart Examples/pyramidrotation


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/High Resolution Chart Examples/pyramidrotation

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

Project "pyramidrotation.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
EventHandler Sub Open() createChart(0, "pyramidrotation0") End EventHandler
Protected Sub CreateChart(img as integer, filename as string) const f=4 // scale factor, 1 for screen and 4 or more for printing dim w as new PicWindow w.Title=filename // The data for the pyramid chart dim data(-1) as double = array(156.0, 123, 211, 179) // The semi-transparent colors for the pyramid layers dim colors(-1) as integer colors.Append &h400000cc colors.Append &h4066aaee colors.Append &h40ffbb00 colors.Append &h40ee6622 // The rotation angle dim angle as integer = 30 // Create a PyramidChart object of size 200 x 200 pixels, with white (ffffff) // background and grey (888888) border dim c as new CDPyramidChartMBS(200*f, 200*f, &hffffff, &h888888) // Set the pyramid center at (100, 100), and width x height to 60 x 120 pixels c.setPyramidSize(100*f, 100*f, 60*f, 120*f) // Set the elevation to 15 degrees and use the given rotation angle call c.addTitle("Pyramid Chart", "ariali.ttf", 15*f) c.setViewAngle(15, angle) // Set the pyramid data c.setData(data) // Set the layer colors to the given colors c.setColors(c.kDataColor, colors) // Leave 1% gaps between layers c.setLayerGap(0.01) // Output the chart w.Backdrop=c.makeChartPicture w.top=50 w.left=50 w.Width=200*f w.Height=200*f w.show End Sub
End Class
Class PicWindow Inherits Window
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

See also:

The items on this page are in the following plugins: MBS ChartDirector Plugin.


💬 Ask a question or report a problem