Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 14 in printed book and digital formats -- plus a one-year subscription so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

PDF:

Feature

Easy Charts and Graphs Part 2

Using the ChartDirector Plugin

Issue: 7.5 (July/August 2009)
Article Description: No description available.
Article Length (in bytes): 12,402
Starting Page Number: 31
RBD Number: 7512
Resource File(s): None
Related Link(s): None
Known Limitations: None

Excerpt of article text...

The ChartDirector REALbasic plugin is a powerful chart component for creating professional looking charts. In Part 1 we began with some simple examples of using the plugin, so in this part we'll finish with a few more.

Polar charts

You can create a lot of different polar charts with ChartDirector. Here I will show how to create a polar chart with bubbles. Basically we draw lines on the polar chart, but these are invisible lines where we only show the data points with different sizes. First we start with data for the values, the angles, and the size of each data point. As we want to show bubbles in two colors, we use two layers with each having its own fill color.

dim data0(-1) as double = array(6, 12.5, 18.2, 15.0)

dim angles0(-1) as double = array(45, 96, 169, 258.0)

dim size0(-1) as double = array(41, 105, 12, 20.0)

dim data1(-1) as double = array(18, 16, 11, 14.0)

dim angles1(-1) as double = array(30, 210, 240, 310.0)

dim size1(-1) as double = array(30, 45, 12, 90.0)

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com