![]() Then we can insert the title of the diagram that should appear in the middle of the upper side. In the image you can see a working environment with a red background, blue edge color and the elevation of 5, additionally the corners have been rounded with the method setRoundedFrame.īut for our example we take a white background. In the parameters we can set the height and width of the working environment, the background color, the edge color and the stars of the elevation effect. Then we create our diagram working environment.ĭim c As New CDPieChartMBS(600, 400, &hffffff, &hffffff, 0) I have chosen a combination of pink and purple tones: Here is a small tip: You can use already known color combinations, lists of color combinations that harmonize well with each other can be found in the Internet in large numbers. We also arrange the colors of the individual circle sections as an array. It must be ensured that the label sequence corresponds to the order of the data sequence.ĭim labels(-1) As String = Array (“Bread”, “Buns”, “Cake”, “Cookies”) Now we create another array with the corresponding labels. We don’t have to worry about the percentage, because it is automatically calculated based on the specified array. For this we enter in our array the 600$ of bread, 335$ of buns, 309$ of cake and 256$ of cookies.ĭim data(-1) As Double = Array (600, 335, 309, 256) We now want to read from our chart what percentage of the profit is made by bread, buns, cakes and cookies. A pie chart has one-dimensional data, that means that we need to filled one array with data. ![]() In this article I would like to show you some examples that demonstrate some possibilities you have to create charts. Do you want to work with chart in your Xojo application? You can use the MBS ChartDirector Plugin in conjunction with the ChartDirector library to display charts.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |