-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumXAxis.XAxisPositionenum for the position of the x-labels relative to the chart
-
Field Summary
Fields Modifier and Type Field Description public intmLabelWidthpublic intmLabelHeight
-
Constructor Summary
Constructors Constructor Description XAxis()
-
Method Summary
Modifier and Type Method Description XAxis.XAxisPositiongetPosition()returns the position of the x-labels voidsetPosition(XAxis.XAxisPosition pos)sets the position of the x-labels floatgetLabelRotationAngle()returns the angle for drawing the X axis labels (in degrees) voidsetLabelRotationAngle(float angle)sets the angle for drawing the X axis labels (in degrees) voidsetAvoidFirstLastClipping(boolean enabled)if set to true, the chart will avoid that the first and last label entryin the chart "clip" off the edge of the chart or the screen booleanisAvoidFirstLastClippingEnabled()returns true if avoid-first-lastclipping is enabled, false if not -
Methods inherited from class com.github.mikephil.charting.components.AxisBase
addLimitLine, addLimitRange, calculate, disableAxisLineDashedLine, disableGridDashedLine, enableAxisLineDashedLine, enableGridDashedLine, getAxisLineColor, getAxisLineDashPathEffect, getAxisLineWidth, getAxisMaxLabels, getAxisMaximum, getAxisMinLabels, getAxisMinimum, getFormattedLabel, getGranularity, getGridColor, getGridDashPathEffect, getGridLineWidth, getLabelCount, getLimitLines, getLimitRanges, getLongestLabel, getLongestLabel, getSpaceMax, getSpaceMin, getSpecificPositions, getValueFormatter, isAxisLineDashedLineEnabled, isAxisMaxCustom, isAxisMinCustom, isCenterAxisLabelsEnabled, isDrawAxisLineEnabled, isDrawGridLinesBehindDataEnabled, isDrawGridLinesEnabled, isDrawLabelsEnabled, isDrawLimitLinesBehindDataEnabled, isForceLabelsEnabled, isGranularityEnabled, isGridDashedLineEnabled, isShowSpecificPositions, removeAllLimitLines, removeAllLimitRanges, removeLimitLine, removeLimitRange, resetAxisMaximum, resetAxisMinimum, setAxisLineColor, setAxisLineDashedLine, setAxisLineWidth, setAxisMaxLabels, setAxisMaxValue, setAxisMaximum, setAxisMinLabels, setAxisMinValue, setAxisMinimum, setCenterAxisLabels, setDrawAxisLine, setDrawGridLines, setDrawGridLinesBehindData, setDrawLabels, setDrawLimitLinesBehindData, setGranularity, setGranularityEnabled, setGridColor, setGridDashedLine, setGridLineWidth, setLabelCount, setLabelCount, setShowSpecificPositions, setSpaceMax, setSpaceMin, setSpecificPositions, setTextColor, setValueFormatter -
Methods inherited from class com.github.mikephil.charting.components.ComponentBase
getTextColor, getTextSize, getTypeface, getXOffset, getYOffset, isEnabled, setEnabled, setTextColor, setTextSize, setTypeface, setXOffset, setYOffset -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getPosition
XAxis.XAxisPosition getPosition()
returns the position of the x-labels
-
setPosition
void setPosition(XAxis.XAxisPosition pos)
sets the position of the x-labels
-
getLabelRotationAngle
float getLabelRotationAngle()
returns the angle for drawing the X axis labels (in degrees)
-
setLabelRotationAngle
void setLabelRotationAngle(float angle)
sets the angle for drawing the X axis labels (in degrees)
- Parameters:
angle- the angle in degrees
-
setAvoidFirstLastClipping
void setAvoidFirstLastClipping(boolean enabled)
if set to true, the chart will avoid that the first and last label entryin the chart "clip" off the edge of the chart or the screen
-
isAvoidFirstLastClippingEnabled
boolean isAvoidFirstLastClippingEnabled()
returns true if avoid-first-lastclipping is enabled, false if not
-
-
-
-