OverviewSingleDeprecated

package jsx3.chart

Various Charting related constants and utility functions.

Version:

1.1

Authors:

Jesse Costello-Good

Class Summary
jsx3.chart.AreaChart
An area chart.
jsx3.chart.AreaSeries
A data series for an area chart.
jsx3.chart.Axis
A base class for all types of axis.
jsx3.chart.BCChart
Superclass of bar and column chart.
jsx3.chart.BCSeries
Shared functionality between BarSeries and ColumnSeries.
jsx3.chart.BarChart
A bar chart.
jsx3.chart.BarSeries
The data series type for a jsx3.chart.BarChart.
jsx3.chart.BubbleSeries
A data series used for a jsx3.chart.BubbleChart.
jsx3.chart.CartesianChart
Base chart class for charts that render on a cartesian plane with x and y axes.
jsx3.chart.CategoryAxis
Axis type that displays a set of discrete values (categories).
jsx3.chart.Chart
The base class for all charts in this package.
jsx3.chart.ChartComponent
A base class for every logical component of a chart.
jsx3.chart.ChartLabel
A chart component to render a text box.
jsx3.chart.ColumnChart
A column chart.
jsx3.chart.ColumnSeries
The data series type for a jsx3.chart.ColumnChart.
jsx3.chart.GridLines
A chart component that renders a grid of lines and fills aligned with an x and y axis.
jsx3.chart.Legend
Chart component that renders a simple legend.
jsx3.chart.LineChart
A line chart.
jsx3.chart.LineSeries
A data series for a line chart.
jsx3.chart.LinearAxis
Type of axis that displays a linear range of values.
jsx3.chart.LogarithmicAxis
An axis that displays a range of values logarithmically (base^n and base^(n+1) occupy same visual space).
jsx3.chart.PieChart
A pie chart.
jsx3.chart.PieSeries
A data series for a pie chart.
jsx3.chart.PlotChart
An plot (scatter/point/bubble) chart.
jsx3.chart.PlotSeries
Class encapsulating behavior shared by PointSeries and BubbleSeries
jsx3.chart.PointRenderer
Objects that implement this interface may be used in Line/Area/Point/Bubble charts to render the points that appear at each datapoint.
jsx3.chart.PointSeries
A data series used for a jsx3.chart.PointChart.
jsx3.chart.RadialChart
Base class for radial charts (pie chart is only example so far).
jsx3.chart.Series
The base class for all data series classes.
Field Summary
static String
QBOTTOM
bottom/south quadrant
static String
QLEFT
left/west quadrant
static String
QRIGHT
right/east quadrant
static String
QTOP
top/north quadrant
Method Summary
static jsx3.vector.Fill
addGradient(fill : jsx3.vector.Fill, value : String)
Utility function, combines a vector fill and the property editor string format of a gradient
static Number
Utility function, converts a value to a Number
static boolean
Tests whether an object is an Axis that displays set of discreet categories
static boolean
Tests whether an object is an Axis that displays a range of number values
static Array
Utility function, parses the property editor string format of a gradient into its constituent parts
static Array
splitBox(left : int, top : int, width : int, height : int, placement : String, w : int, h : int)
Splits a rectangular box in two pieces.
Field Detail

QBOTTOM

static final String QBOTTOM
bottom/south quadrant

QLEFT

static final String QLEFT
left/west quadrant

QRIGHT

static final String QRIGHT
right/east quadrant

QTOP

static final String QTOP
top/north quadrant
Method Detail

addGradient

static jsx3.vector.Fill addGradient(fill : jsx3.vector.Fill, value : String)
Utility function, combines a vector fill and the property editor string format of a gradient

Parameters:

fillthe base fill
valuethe gradient in the form "color [angle [alpha [colors ...]]]"

Returns:

 

asNumber

static Number asNumber(v : Object)
Utility function, converts a value to a Number

Parameters:

v

Returns:

 

isCategoryAxis

static boolean isCategoryAxis(obj : Object)
Tests whether an object is an Axis that displays set of discreet categories

Parameters:

obj

Returns:

 

isValueAxis

static boolean isValueAxis(obj : Object)
Tests whether an object is an Axis that displays a range of number values

Parameters:

obj

Returns:

 

parseGradient

static Array parseGradient(value : String)
Utility function, parses the property editor string format of a gradient into its constituent parts

Parameters:

valuethe gradient in the form "color [angle [alpha [colors ...]]]"

Returns:

[color,angle,alpha,colors]  

splitBox

static Array splitBox(left : int, top : int, width : int, height : int, placement : String, w : int, h : int)
Splits a rectangular box in two pieces.

Parameters:

leftthe left value of the box to split
topthe top value of the box to split
widththe width value of the box to split
heightthe height value of the box to split
placement{top,left,right,bottom} where to place the first sub-box
wthe desired width of the first sub-box
hthe desired height of the first sub-box

Returns:

[[l1,t1,w1,h1],[l2,t2,w2,h2]]