public class Axis
extends com.ibm.json.java.JSONObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DROP_LABELS
dropLabels (Boolean, optional): Whether the axis automatically drops labels at regular interval or not to avoid labels overlapping.
|
static java.lang.String |
ENABLE_CACHE
enableCache (Boolean, optional): Whether the ticks and labels are cached from one rendering to another.
|
static java.lang.String |
FIX_LOWER
(String, optional): Align the smallest value on the axis with the specified tick level.
|
static java.lang.String |
FIX_UPPER
(String, optional): Align the greatest value on the axis with the specified tick level.
|
static java.lang.String |
FIXED
fixed (Boolean, optional): Force all axis labels to be fixed numbers.
|
static java.lang.String |
FONT
font (String, optional): An optional font definition (as used in the CSS font property) for labels.
|
static java.lang.String |
FONT_COLOR
fontColor (String|dojo.Color, optional): An optional color to be used in drawing labels.
|
static java.lang.String |
FROM
from (Number, optional): Force the chart to render data visible from this value.
|
static java.lang.String |
HTML_LABELS
htmlLabels (Boolean, optional): Flag to use HTML (as opposed to the native vector graphics engine) to draw labels.
|
static java.lang.String |
ID
Unique Id for the Axis
|
static java.lang.String |
INCLUDE_ZERO
includeZero (Boolean, optional): Include 0 on the axis rendering.
|
static java.lang.String |
LABEL_FUNC
labelFunc (Function, optional): An optional function to use to compute label text.
|
static java.lang.String |
LABEL_SIZE_CHANGE
labelSizeChange (Boolean, optional): Indicates to the axis whether the axis labels are changing their size on zoom.
|
static java.lang.String |
LABELS
labels (Object[], optional): An array of labels for major ticks, with corresponding numeric values, ordered by value.
|
static java.lang.String |
LEFT_BOTTOM
(Boolean, optional): The position of a vertical axis; if true, will be placed against the left-bottom corner of the chart.
|
static java.lang.String |
MAJOR_LABELS
majorLabels (Boolean, optional): Flag to draw labels at major ticks.
|
static java.lang.String |
MAJOR_TICK
majorTick (JSONObject, optional): An object containing a dojox.gfx.Stroke, and a length (number) for a major tick.
|
static java.lang.String |
MAJOR_TICK_STEP
majorTickStep (Number, optional): The amount to skip before a major tick is drawn.
|
static java.lang.String |
MAX
max (Number, optional): The largest value on an axis.
|
static java.lang.String |
MAX_LABEL_SIZE
maxLabelSize (Number, optional):The maximum size, in pixels, for a label.
|
static java.lang.String |
MICRO_TICK
microTick (JSONObject, optional): An object containing a dojox.gfx.Stroke, and a length (number) for a micro tick.
|
static java.lang.String |
MICRO_TICK_STEP
microTickStep (Number, optional): The amount to skip before a micro tick is drawn.
|
static java.lang.String |
MICRO_TICKS
microTicks (Boolean, optional): Flag to draw micro ticks on an axis.
|
static java.lang.String |
MIN
min (Number, optional): The smallest value on an axis.
|
static java.lang.String |
MINOR_LABELS
minorLabels (Boolean, optional): Flag to labels on minor ticks when there is enough space.
|
static java.lang.String |
MINOR_TICK
minorTick (JSONObject, optional): An object containing a dojox.gfx.Stroke, and a length (number) for a minor tick.
|
static java.lang.String |
MINOR_TICK_STEP
minorTickStep (Number, optional): The amount to skip before a minor tick is drawn.
|
static java.lang.String |
MINOR_TICKS
minorTicks (Boolean, optional): Flag to draw minor ticks on an axis.
|
static java.lang.String |
NATURAL
(Boolean, optional): Ensure tick marks are made on "natural" numbers.
|
static java.lang.String |
STROKE
stroke ([JSONObject Value(type: object, value: undefined)], optional): An optional stroke to be used for drawing an axis.
|
static java.lang.String |
TICK
tick (JSONObject, optional): An object containing a dojox.gfx.Stroke, and a length (number) for a tick.
|
static java.lang.String |
TITLE_FONT
titleFont (String, optional): An optional font definition for axis title
|
static java.lang.String |
TITLE_FONT_COLOR
titleFontColor (String, optional): An optional axis title color
|
static java.lang.String |
TITLE_GAP
titleGap (Number, optional): An optional grap between axis title and axis label
|
static java.lang.String |
TITLE_ORIENTATION
titleOrientation (String, optional): An optional orientation for axis title.
|
static java.lang.String |
TO
to (Number, optional): Force the chart to render data visible to this value.
|
static java.lang.String |
VERTICAL
(Boolean, optional): A flag that says whether an axis is vertical (i.e.
|
Constructor and Description |
---|
Axis(java.lang.String axisId)
Creates a new Axis object with the given id, usually 'x', or 'y'
|
Modifier and Type | Method and Description |
---|---|
static Axis |
newXAxis()
Creates a newly configured X Axis, with ONLY major ticks and labels, and no 0
|
static Axis |
newYAxis()
creates a newly configured Y axis
|
isValidObject, isValidType, parse, parse, parse, put, serialize, serialize, serialize, serialize, serialize, serialize, toString
public static final java.lang.String VERTICAL
public static final java.lang.String FIX_UPPER
public static final java.lang.String FIX_LOWER
public static final java.lang.String NATURAL
public static final java.lang.String LEFT_BOTTOM
public static final java.lang.String INCLUDE_ZERO
public static final java.lang.String FIXED
public static final java.lang.String MAJOR_LABELS
public static final java.lang.String MINOR_TICKS
public static final java.lang.String MINOR_LABELS
public static final java.lang.String MICRO_TICKS
public static final java.lang.String HTML_LABELS
public static final java.lang.String MIN
public static final java.lang.String MAX
public static final java.lang.String FROM
public static final java.lang.String TO
public static final java.lang.String MAJOR_TICK_STEP
public static final java.lang.String MINOR_TICK_STEP
public static final java.lang.String MICRO_TICK_STEP
public static final java.lang.String LABELS
public static final java.lang.String LABEL_FUNC
public static final java.lang.String MAX_LABEL_SIZE
public static final java.lang.String STROKE
public static final java.lang.String MAJOR_TICK
public static final java.lang.String MINOR_TICK
public static final java.lang.String MICRO_TICK
public static final java.lang.String TICK
public static final java.lang.String FONT
public static final java.lang.String FONT_COLOR
public static final java.lang.String TITLE_GAP
public static final java.lang.String TITLE_FONT
public static final java.lang.String TITLE_FONT_COLOR
public static final java.lang.String TITLE_ORIENTATION
public static final java.lang.String ENABLE_CACHE
public static final java.lang.String DROP_LABELS
public static final java.lang.String LABEL_SIZE_CHANGE
public static final java.lang.String ID