Example: /ChartDirector/rose

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


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

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

Project "rose.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() // Data for the chart dim data(-1) as double = array(9.4, 1.8, 2.1, 2.3, 3.5, 7.7, 8.8, 6.1, 5.0, 3.1, 6.0, 4.3, 5.1, 2.6, 1.5, 2.2, 5.1, 4.3, 4.0, 9.0, 1.7, 8.8, 9.9, 9.5) dim angles(-1) as double = array(0, 15, 30, 45, 60, 75, 90, 105, 120, 135, 150, 165, 180, 195, 210, 225, 240, 255, 270, 285, 300, 315, 330, 345.0) // Create a PolarChart object of size 460 x 460 pixels, with a silver background // and a 1 pixel 3D border dim c as new CDPolarChartMBS(460, 460, CDPolarChartMBS.silverColor, &h000000, 1) // Add a title to the chart at the top left corner using 15pts Arial Bold Italic // font. Use white text on deep blue background. c.addTitle("Polar Vector Chart Demonstration", "arialbi.ttf", 15, &hffffff).setBackground(&h000080) // Set plot area center at (230, 240) with radius 180 pixels and white background c.setPlotArea(230, 240, 180, &hffffff) // Set the grid style to circular grid c.setGridStyle(false) // Set angular axis as 0 - 360, with a spoke every 30 units c.angularAxis.setLinearScale(0, 360, 30) // Add sectors to the chart as sector zones dim i,count as integer count=UBound(data) for i=0 to count c.angularAxis.addZone(angles(i), angles(i) + 15, 0, data(i), &h33ff33, &h008000) next // Add an Transparent invisible layer to ensure the axis is auto-scaled using the // data call c.addLineLayer(data, CDPolarChartMBS.kTransparent) // 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