Example: /ChartDirector/simplePie with Japanese

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/simplePie with Japanese


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/simplePie with Japanese

This example is the version from Sat, 19th May 2017.

Project "simplePie with Japanese.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
End Class
Class PicWindow Inherits Window
EventHandler Sub Open() dim c as CDPieChartMBS // The data for the pie chart dim data(-1) as double=array(55.0, 18.0, 25.0, 22.0) // The labels for the pie chart, Words are choosen random to check font! dim labels(-1) as string=array("人材募集","ウェブ全体から検索","ウェブ","広告掲載") // Create a PieChart object of size 360 x 300 pixels c = new CDPieChartMBS(700, 600) // Set the center of the pie at (180, 140) and the radius to 100 pixels c.setPieSize 350,300,150 // Set the pie data and the pie labels c.setData data,labels // this is the font file we use: "华文仿宋" it is available on Mac OS X. call c.setLabelStyle "华文仿宋",18 // Please use a font which contains the characters used here! c.addLegend(55, 22, false, "Arial Unicode.ttf", 8).setBackground(c.kTransparent) c.addTitle("人材募集", "Arial Unicode.ttf", 10, &hffffff).setBackground(&h800080, -1, 1) // output the chart Backdrop=c.makeChartPicture End EventHandler
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&File"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "Select &All"
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