public class ChartType
extends com.ibm.json.java.JSONObject
Chart
requires a Chart Type. By default
a Columns (ie, Vertical Bar) chart is used. Since this is a JSON object, additional properties can be set
as required for a given chart type.Modifier and Type | Class and Description |
---|---|
static class |
ChartType.ChartTypes |
static interface |
ChartType.Fields |
Constructor and Description |
---|
ChartType()
Creates a new ChartType using default values.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getGap()
Return the Gap for the chart items
|
java.lang.String |
getLabel()
Gets the Label for this Chart Type, if nothing is supplied, then the type is used
|
int |
getLabelOffset()
Returns the current label offset
|
java.lang.String |
getType()
Returns the Chart Type (ie, the Dojo Chart Type)
|
void |
setGap(int i)
Set the Gap for the Chart Items
|
void |
setLabel(java.lang.String label)
Sets the Label for this ChartType
|
void |
setLabelOffset(int off)
Sets the label offset, usually used in Pie charts to move the % outside of the pie
|
void |
setTension(java.lang.String ten)
Sets the tension to be one of
|
void |
setType(ChartType.ChartTypes type)
Sets the chart type using enum
|
void |
setType(java.lang.String type)
Set the Chart Type.
|
isValidObject, isValidType, parse, parse, parse, put, serialize, serialize, serialize, serialize, serialize, serialize, toString
public void setGap(int i)
i
- public java.lang.Integer getGap()
public void setType(ChartType.ChartTypes type)
type
- public void setType(java.lang.String type)
ChartType.ChartTypes
for a list of supported types.type
- public java.lang.String getType()
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- public void setTension(java.lang.String ten)
X - Cubic bezier lines x - Similar to "X" but assumes that the point set is closed (a loop). It can be used when plotting true XY data. S - Quadratic bezier lines.
ten
- public void setLabelOffset(int off)
off
- public int getLabelOffset()