public class ValueAxis extends AbstractAxis<ValueAxis>
SerialChartModelImpl
, RadarChartModelImpl
, XYChartModelImpl
, charts, multiple can be assigned.
Gets automatically populated, one for SerialChart and two for XYChart charts, if none has been specified.
Constructor and Description |
---|
ValueAxis() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getAutoWrap() |
java.lang.Double |
getAxisFrequency() |
java.lang.Integer |
getAxisTitleOffset() |
JsFunction |
getBalloonTextFunction() |
java.lang.Double |
getBaseValue() |
Duration |
getDuration() |
java.util.Map<Duration,java.lang.String> |
getDurationUnits() |
GridType |
getGridType() |
java.lang.String |
getId() |
java.lang.Boolean |
getIncludeAllValues() |
java.lang.Boolean |
getIncludeGuidesInMinMax() |
java.lang.Boolean |
getIncludeHidden() |
java.lang.Boolean |
getIntegersOnly() |
JsFunction |
getLabelFunction() |
java.lang.Boolean |
getLogarithmic() |
java.lang.Double |
getMaximum() |
java.util.Date |
getMaximumDate() |
java.lang.Double |
getMinimum() |
java.util.Date |
getMinimumDate() |
java.lang.Double |
getMinMaxMultiplier() |
DatePeriod |
getMinPeriod() |
PointPosition |
getPointPosition() |
java.lang.Integer |
getPrecision() |
java.lang.Boolean |
getRadarCategoriesEnabled() |
java.lang.Boolean |
getRecalculateToPercents() |
java.lang.Boolean |
getReversed() |
StackType |
getStackType() |
java.lang.Boolean |
getStrictMinMax() |
java.lang.Double |
getSynchronizationMultiplier() |
java.lang.String |
getSynchronizeWith() |
java.lang.String |
getTotalText() |
Color |
getTotalTextColor() |
java.lang.Integer |
getTotalTextOffset() |
java.lang.Double |
getTreatZeroAs() |
ValueAxisType |
getType() |
java.lang.String |
getUnit() |
UnitPosition |
getUnitPosition() |
java.lang.Boolean |
getUsePrefixes() |
java.lang.Boolean |
getUseScientificNotation() |
java.lang.Double |
getZeroGridAlpha() |
void |
setAutoWrap(java.lang.Boolean autoWrap)
If this is set to true and the label does not fit, it will be wrapped.
|
ValueAxis |
setAxisFrequency(java.lang.Double axisFrequency)
Sets axis frequency.
|
ValueAxis |
setAxisTitleOffset(java.lang.Integer axisTitleOffset)
Sets the distance from axis to the axis title (category).
|
ValueAxis |
setBalloonTextFunction(JsFunction balloonTextFunction)
Sets JS function to format balloon text of the axis.
|
ValueAxis |
setBaseValue(java.lang.Double baseValue)
Sets the base value of the axis.
|
ValueAxis |
setDuration(Duration duration)
Set the duration unit if your values represents time units, and you want value axis labels to be formatted as
duration.
|
ValueAxis |
setDurationUnits(java.util.Map<Duration,java.lang.String> durationUnits)
If duration property is set, you can specify what string should be displayed next to day, hour, minute and
second.
|
ValueAxis |
setGridType(GridType gridType)
Sets grid type.
|
ValueAxis |
setId(java.lang.String id)
Sets unique id of value axis.
|
ValueAxis |
setIncludeAllValues(java.lang.Boolean includeAllValues)
Set includeAllValues to true if minimum and maximum of value axis shouldn't change while zooming/scrolling.
|
ValueAxis |
setIncludeGuidesInMinMax(java.lang.Boolean includeGuidesInMinMax)
Set includeGuidesInMinMax to true the guide values should be included when calculating minimum and maximum of
the axis.
|
ValueAxis |
setIncludeHidden(java.lang.Boolean includeHidden)
Sets includeHidden to true if the axis should include hidden graphs when calculating minimum and maximum
values.
|
ValueAxis |
setIntegersOnly(java.lang.Boolean integersOnly)
Set integersOnly to true if values on the axis can only be integers.
|
ValueAxis |
setLabelFunction(JsFunction labelFunction)
Sets JS function to format value axis labels.
|
ValueAxis |
setLogarithmic(java.lang.Boolean logarithmic)
Set logarithmic to true if this value axis scale should be logarithmic.
|
ValueAxis |
setMaximum(java.lang.Double maximum)
Set maximum value if you don't want maximum value to be calculated by the chart.
|
ValueAxis |
setMaximumDate(java.util.Date maximumDate)
Sets maximum date of the axis, if your value axis is date-based.
|
ValueAxis |
setMinimum(java.lang.Double minimum)
Set minimum value if you don't want minimum value to be calculated by the chart.
|
ValueAxis |
setMinimumDate(java.util.Date minimumDate)
Sets minimum date of the axis, if your value axis is date-based.
|
ValueAxis |
setMinMaxMultiplier(java.lang.Double minMaxMultiplier)
Sets minimum and maximum multiplier.
|
void |
setMinPeriod(DatePeriod minPeriod)
Sets the shortest period of your data.
|
ValueAxis |
setPointPosition(PointPosition pointPosition)
Sets point position.
|
ValueAxis |
setPrecision(java.lang.Integer precision)
Sets precision (number of decimals) of values.
|
ValueAxis |
setRadarCategoriesEnabled(java.lang.Boolean radarCategoriesEnabled)
Set radarCategoriesEnabled to false if categories (axes titles) shouldn't be displayed near axes.
|
ValueAxis |
setRecalculateToPercents(java.lang.Boolean recalculateToPercents)
Set recalculateToPercents to true, if graphs values should be recalculated to percents.
|
ValueAxis |
setReversed(java.lang.Boolean reversed)
Set reversed to true if value axis should be reversed (smaller values on top).
|
ValueAxis |
setStackType(StackType stackType)
Sets stacking mode of the axis.
|
ValueAxis |
setStrictMinMax(java.lang.Boolean strictMinMax)
If you set minimum and maximum for your axis, chart adjusts them so that grid would start and end on the
beginning and end of plot area and grid would be at equal intervals.
|
ValueAxis |
setSynchronizationMultiplier(java.lang.Double synchronizationMultiplier)
Set the synchronization multiplier, in case you synchronize one value axis with another.
|
ValueAxis |
setSynchronizeWith(java.lang.String synchronizeWith)
One value axis can be synchronized with another value axis.
|
ValueAxis |
setTotalText(java.lang.String totalText)
Sets total text.
|
ValueAxis |
setTotalTextColor(Color totalTextColor)
Sets color of total text.
|
ValueAxis |
setTotalTextOffset(java.lang.Integer totalTextOffset)
Sets distance from data point to total text.
|
ValueAxis |
setTreatZeroAs(java.lang.Double treatZeroAs)
This allows you to have logarithmic value axis and have zero values in the data.
|
ValueAxis |
setType(ValueAxisType type)
Sets type of value axis.
|
ValueAxis |
setUnit(java.lang.String unit)
Sets unit which will be added to the value label.
|
ValueAxis |
setUnitPosition(UnitPosition unitPosition)
Sets position of the unit.
|
ValueAxis |
setUsePrefixes(java.lang.Boolean usePrefixes)
Set usePrefixes to true, if prefixes should be used for big and small numbers.
|
ValueAxis |
setUseScientificNotation(java.lang.Boolean useScientificNotation)
Set useScientificNotation to true if values should always be formatted using scientific notation (5e+8, 5e-8...).
|
ValueAxis |
setZeroGridAlpha(java.lang.Double zeroGridAlpha)
Sets opacity of a zero grid line.
|
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.Integer getAxisTitleOffset()
public ValueAxis setAxisTitleOffset(java.lang.Integer axisTitleOffset)
axisTitleOffset
- axis title offsetpublic java.lang.Double getBaseValue()
public ValueAxis setBaseValue(java.lang.Double baseValue)
baseValue
- base valuepublic Duration getDuration()
public ValueAxis setDuration(Duration duration)
duration
- durationpublic java.util.Map<Duration,java.lang.String> getDurationUnits()
public ValueAxis setDurationUnits(java.util.Map<Duration,java.lang.String> durationUnits)
{DD:'d. ', hh:':', mm:':',ss:''}
durationUnits
- duration units mappublic GridType getGridType()
public ValueAxis setGridType(GridType gridType)
gridType
- grid typepublic java.lang.String getId()
public ValueAxis setId(java.lang.String id)
id
- idpublic java.lang.Boolean getIncludeGuidesInMinMax()
public ValueAxis setIncludeGuidesInMinMax(java.lang.Boolean includeGuidesInMinMax)
includeGuidesInMinMax
- includeGuidesInMinMax optionpublic java.lang.Boolean getIncludeHidden()
public ValueAxis setIncludeHidden(java.lang.Boolean includeHidden)
includeHidden
- includeHidden optionpublic java.lang.Boolean getIntegersOnly()
public ValueAxis setIntegersOnly(java.lang.Boolean integersOnly)
integersOnly
- integersOnly optionpublic java.lang.Boolean getLogarithmic()
public ValueAxis setLogarithmic(java.lang.Boolean logarithmic)
logarithmic
- logarithmic optionpublic java.lang.Double getMaximum()
public ValueAxis setMaximum(java.lang.Double maximum)
maximum
- maximum valuepublic java.lang.Double getMinimum()
public ValueAxis setMinimum(java.lang.Double minimum)
minimum
- minimum valuepublic java.lang.Double getMinMaxMultiplier()
public ValueAxis setMinMaxMultiplier(java.lang.Double minMaxMultiplier)
minMaxMultiplier
- minimum and maximum multiplierpublic java.lang.Integer getPrecision()
public ValueAxis setPrecision(java.lang.Integer precision)
precision
- precisionpublic java.lang.Boolean getRadarCategoriesEnabled()
public ValueAxis setRadarCategoriesEnabled(java.lang.Boolean radarCategoriesEnabled)
radarCategoriesEnabled
- radarCategoriesEnabled optionpublic java.lang.Boolean getRecalculateToPercents()
public ValueAxis setRecalculateToPercents(java.lang.Boolean recalculateToPercents)
ValueAxis
,
like XY chart. If not set the default value is false.recalculateToPercents
- recalculateToPercents optionpublic java.lang.Boolean getReversed()
public ValueAxis setReversed(java.lang.Boolean reversed)
reversed
- reversed optionpublic StackType getStackType()
public ValueAxis setStackType(StackType stackType)
stackType
- stack typepublic java.lang.Double getSynchronizationMultiplier()
public ValueAxis setSynchronizationMultiplier(java.lang.Double synchronizationMultiplier)
synchronizationMultiplier
- synchronization multiplierpublic java.lang.String getTotalText()
public ValueAxis setTotalText(java.lang.String totalText)
totalText
- total textpublic Color getTotalTextColor()
public ValueAxis setTotalTextColor(Color totalTextColor)
totalTextColor
- colorpublic java.lang.String getUnit()
public ValueAxis setUnit(java.lang.String unit)
unit
- unitpublic UnitPosition getUnitPosition()
public ValueAxis setUnitPosition(UnitPosition unitPosition)
unitPosition
- unit positionpublic java.lang.Boolean getUsePrefixes()
public ValueAxis setUsePrefixes(java.lang.Boolean usePrefixes)
prefixesOfSmallNumbers
and
prefixesOfBigNumbers
. If not set the default value is false.usePrefixes
- usePrefixes optionpublic java.lang.Boolean getUseScientificNotation()
public ValueAxis setUseScientificNotation(java.lang.Boolean useScientificNotation)
useScientificNotation
- useScientificNotation optionpublic java.lang.String getSynchronizeWith()
public ValueAxis setSynchronizeWith(java.lang.String synchronizeWith)
synchronizeWith
- id of the axispublic java.lang.Integer getTotalTextOffset()
public ValueAxis setTotalTextOffset(java.lang.Integer totalTextOffset)
totalTextOffset
- total text offsetpublic java.lang.Double getTreatZeroAs()
public ValueAxis setTreatZeroAs(java.lang.Double treatZeroAs)
treatZeroAs
- treatZeroAs valuepublic java.lang.Boolean getIncludeAllValues()
public ValueAxis setIncludeAllValues(java.lang.Boolean includeAllValues)
includeAllValues
- includeAllValues optionpublic JsFunction getLabelFunction()
public ValueAxis setLabelFunction(JsFunction labelFunction)
labelFunction
- JS functionpublic java.util.Date getMaximumDate()
public ValueAxis setMaximumDate(java.util.Date maximumDate)
maximumDate
- maximum datepublic java.util.Date getMinimumDate()
public ValueAxis setMinimumDate(java.util.Date minimumDate)
minimumDate
- minimum datepublic PointPosition getPointPosition()
public ValueAxis setPointPosition(PointPosition pointPosition)
pointPosition
- point positionpublic java.lang.Boolean getStrictMinMax()
public ValueAxis setStrictMinMax(java.lang.Boolean strictMinMax)
strictMinMax
- strictMinMax optionpublic ValueAxisType getType()
public ValueAxis setType(ValueAxisType type)
type
- typepublic java.lang.Double getZeroGridAlpha()
public ValueAxis setZeroGridAlpha(java.lang.Double zeroGridAlpha)
zeroGridAlpha
- opacitypublic java.lang.Double getAxisFrequency()
public ValueAxis setAxisFrequency(java.lang.Double axisFrequency)
axisFrequency
- axis frequencypublic JsFunction getBalloonTextFunction()
public ValueAxis setBalloonTextFunction(JsFunction balloonTextFunction)
balloonTextFunction
- JS functionpublic java.lang.Boolean getAutoWrap()
public void setAutoWrap(java.lang.Boolean autoWrap)
autoWrap
- autoWrap optionpublic DatePeriod getMinPeriod()
public void setMinPeriod(DatePeriod minPeriod)
minPeriod
- shortest period