public class CategoryAxis extends AbstractAxis<CategoryAxis>
Constructor and Description |
---|
CategoryAxis() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getAutoWrap() |
JsFunction |
getCategoryFunction() |
java.lang.String |
getClassNameField() |
java.lang.Boolean |
getEqualSpacing() |
java.lang.String |
getForceShowField() |
GridPosition |
getGridPosition() |
java.lang.String |
getLabelColorField() |
JsFunction |
getLabelFunction() |
DatePeriod |
getMinPeriod() |
java.lang.Boolean |
getParseDates() |
java.lang.Boolean |
getStartOnAxis() |
java.lang.String |
getTickPosition() |
java.lang.Boolean |
getTwoLineMode() |
java.lang.String |
getWidthField() |
CategoryAxis |
setAutoWrap(java.lang.Boolean autoWrap)
Set autoWrap to true if axis labels (only when it is horizontal) should be wrapped if they don't fit in the
allocated space.
|
CategoryAxis |
setCategoryFunction(JsFunction categoryFunction)
Sets JS function that returns the value that should be used as categoryValue for current item.
|
CategoryAxis |
setClassNameField(java.lang.String classNameField)
Sets CSS class name field.
|
CategoryAxis |
setEqualSpacing(java.lang.Boolean equalSpacing)
Set equalSpacing to true if want dates to be parsed (displayed on the axis, balloons, etc), but data points to
be placed at equal intervals (omitting dates with no data).
|
CategoryAxis |
setForceShowField(java.lang.String forceShowField)
Sets force show field name from data provider which specifies if the category value should always be shown.
|
CategoryAxis |
setGridPosition(GridPosition gridPosition)
Sets grid position: grid line is placed on the center of a cell or on the beginning of a cell.
|
CategoryAxis |
setLabelColorField(java.lang.String labelColorField)
Sets label color field.
|
CategoryAxis |
setLabelFunction(JsFunction labelFunction)
Sets JS function to format category axis labels.
|
CategoryAxis |
setMinPeriod(DatePeriod minPeriod)
Sets the shortest period of your data.
|
CategoryAxis |
setParseDates(java.lang.Boolean parseDates)
Set parseDates to true if your category axis values are date-based.
|
CategoryAxis |
setStartOnAxis(java.lang.Boolean startOnAxis)
Set startOnAxis to true if the graph should start on axis.
|
CategoryAxis |
setTickPosition(java.lang.String tickPosition)
Sets position of an axis tick.
|
void |
setTwoLineMode(java.lang.Boolean twoLineMode)
Set twoLineMode to true, category axis will display date strings of bot small and big period, in two rows, at
the position where bigger period changes.
|
CategoryAxis |
setWidthField(java.lang.String widthField)
Sets relative width for your columns using this field name from data provider.
|
addDateFormats, addGuides, getAutoGridCount, getAutoRotateAngle, getAutoRotateCount, getAxisAlpha, getAxisColor, getAxisThickness, getBalloon, getBoldLabels, getBoldPeriodBeginning, getCenterLabelOnFullPeriod, getCenterLabels, getCenterRotatedLabels, getColor, getDashLength, getDateFormats, getFillAlpha, getFillColor, getFirstDayOfWeek, getFontSize, getGridAlpha, getGridColor, getGridCount, getGridThickness, getGuides, getIgnoreAxisWidth, getInside, getLabelFrequency, getLabelOffset, getLabelRotation, getLabelsEnabled, getMarkPeriodChange, getMinHorizontalGap, getMinorGridAlpha, getMinorGridEnabled, getMinorTickLength, getMinVerticalGap, getOffset, getPosition, getShowFirstLabel, getShowLastLabel, getTickLength, getTitle, getTitleBold, getTitleColor, getTitleFontSize, getTitleRotation, setAutoGridCount, setAutoRotateAngle, setAutoRotateCount, setAxisAlpha, setAxisColor, setAxisThickness, setBalloon, setBoldLabels, setBoldPeriodBeginning, setCenterLabelOnFullPeriod, setCenterLabels, setCenterRotatedLabels, setColor, setDashLength, setDateFormats, setFillAlpha, setFillColor, setFirstDayOfWeek, setFontSize, setGridAlpha, setGridColor, setGridCount, setGridThickness, setGuides, setIgnoreAxisWidth, setInside, setLabelFrequency, setLabelOffset, setLabelRotation, setLabelsEnabled, setMarkPeriodChange, setMinHorizontalGap, setMinorGridAlpha, setMinorGridEnabled, setMinorTickLength, setMinVerticalGap, setOffset, setPosition, setShowFirstLabel, setShowLastLabel, setTickLength, setTitle, setTitleBold, setTitleColor, setTitleFontSize, setTitleRotation
public java.lang.Boolean getAutoWrap()
public CategoryAxis setAutoWrap(java.lang.Boolean autoWrap)
autoWrap
- autoWrap optionpublic java.lang.Boolean getEqualSpacing()
public CategoryAxis setEqualSpacing(java.lang.Boolean equalSpacing)
equalSpacing
- equalSpacing optionpublic java.lang.String getForceShowField()
public CategoryAxis setForceShowField(java.lang.String forceShowField)
forceShowField
- force show field stringpublic GridPosition getGridPosition()
public CategoryAxis setGridPosition(GridPosition gridPosition)
gridPosition
- grid positionpublic DatePeriod getMinPeriod()
public CategoryAxis setMinPeriod(DatePeriod minPeriod)
minPeriod
- the shortest period of your datapublic java.lang.Boolean getParseDates()
public CategoryAxis setParseDates(java.lang.Boolean parseDates)
Note, if you are specifying dates as strings in your data, i.e. "2015-01-05", we strongly recommend setting dataDateFormat as well.
Important, if parseDates is set to true, the data points need to come pre-ordered in ascending order. Data with incorrect order might result in visual and functional glitches on the chart.
If not set the default value is false.
parseDates
- parseDates optionpublic java.lang.Boolean getStartOnAxis()
public CategoryAxis setStartOnAxis(java.lang.Boolean startOnAxis)
startOnAxis
- startOnAxis optionpublic JsFunction getCategoryFunction()
public CategoryAxis setCategoryFunction(JsFunction categoryFunction)
categoryFunction
- JS functionpublic java.lang.String getLabelColorField()
public CategoryAxis setLabelColorField(java.lang.String labelColorField)
labelColorField
- label color field stringpublic java.lang.String getTickPosition()
public CategoryAxis setTickPosition(java.lang.String tickPosition)
tickPosition
- tick position stringpublic java.lang.Boolean getTwoLineMode()
public void setTwoLineMode(java.lang.Boolean twoLineMode)
twoLineMode
- twoLineMode optionpublic JsFunction getLabelFunction()
public CategoryAxis setLabelFunction(JsFunction labelFunction)
labelFunction
- Js functionpublic java.lang.String getWidthField()
public CategoryAxis setWidthField(java.lang.String widthField)
widthField
- width field namepublic java.lang.String getClassNameField()
public CategoryAxis setClassNameField(java.lang.String classNameField)
AbstractChart.addClassNames
is enabled, the category axis labels, ticks
and grid will have this class name set. Note, this will not work
if the axis is date-based.classNameField
- class name field string