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.
|







