2.0.0-beta.2
XML attributes
CartesianChartView
has the following XML attributes:
*AxisStyle
(AxisStyle
): the style of a specific chart axis
*fadingEdgeWidth
(dimension): the width of a specific
fading edge
axisStyle
(AxisStyle
): the style of all chart axes
candlestickLayerStyle
(CandlestickCartesianLayerStyle
): the
CandlestickCartesianLayer
style
columnLayerStyle
(ColumnCartesianLayerStyle
): the style of column charts
fadingEdgeVisibilityInteropolator
(path to
TimeInterpolator
implementation): the visibility
interpolator for fading edges
fadingEdgeVisibilityThreshold
(dimension): the visibility
threshold for the fading edges
fadingEdgeWidth
(dimension): the width of both fading edges
layers
(|
-separated list of
candlestick
, column
, and line
):
the CartesianLayer
s
lineLayerStyle
(LineCartesianLayerStyle
): the style of line charts
scalableEndLayerPadding
(dimension): equivalent to the
scalableEndPaddingDp
parameter of the
CartesianLayerPadding
constructor
scalableStartLayerPadding
(dimension): equivalent to the
scalableStartPaddingDp
parameter of the
CartesianLayerPadding
constructor
scrollEnabled
(boolean): whether to enable horizontal
scrolling
show*Axis
(boolean): whether to show a specific axisunscalableEndLayerPadding
(dimension): equivalent to the
unscalableEndPaddingDp
parameter of the
CartesianLayerPadding
constructor
unscalableStartLayerPadding
(dimension): equivalent to the
unscalableStartPaddingDp
parameter of the
CartesianLayerPadding
constructor
zoomEnabled
(boolean): whether to enable zoomingAxisStyle
addExtremeHorizontalAxisLabelPadding
(boolean): equivalent
to the addExtremeLabel
parameter of
AxisItemPlacer.Horizontal.default
guidelineStyle
(LineComponentStyle
): the style of axis guidelines
horizontalAxisItemPlacer
(aligned
or
segmented
): the HorizontalAxis.ItemPlacer
—see
AxisItemPlacer.Horizontal.aligned
and
AxisItemPlacer.Horizontal.segmented
horizontalAxisLabelOffset
(integer): the label offset for
this axis if it is horizontal
horizontalAxisLabelSpacing
(integer): the label spacing for
this axis if it is horizontal
labelBackground
(color or
ShapeStyle
): the background for axis labels
labelRotationDegrees
(floating-point number): the rotation
of axis labels in degrees
labelStyle
(TextComponentStyle
): the style of axis labels
lineStyle
(LineComponentStyle
): the style of the axis line
shiftExtremeHorizontalAxisLines
(boolean): equivalent to
the shiftExtremeLines
parameters of
AxisItemPlacer.Horizontal.aligned
and
AxisItemPlacer.Horizontal.segmented
shiftTopVerticalAxisLines
(boolean): equivalent to the
shiftTopLines
parameter of
AxisItemPlacer.Vertical.count
showGuidelines
(boolean): whether to display guidelines
showLine
(boolean): whether to display the axis lineshowTick
(boolean): whether to display ticksshowTitle
(boolean or reference): whether to display the
axis title
tickLength
(dimension): the length of axis tickstickStyle
(LineComponentStyle
): the style of axis ticks
titleStyle
(TextComponentStyle
): the style of the axis title
title
(string or reference): the axis titleverticalAxisHorizontalLabelPosition
(outside
or inside
): the horizontal position of the labels on this
axis if it is vertical
verticalAxisItemCount
(integer): equivalent to the
itemCount
parameter of
AxisItemPlacer.Vertical.count
verticalAxisVerticalLabelPosition
(top
,
center
, or bottom
): the vertical position of
the labels on this axis is if it vertical
CandlestickCartesianLayerStyle
absolutelyBearishRelativelyBearishCandleStyle
(CandleStyle
): equivalent to the
absolutelyBearishRelativelyBearish
parameter of
CandlestickCartesianLayer.CandleProvider.absoluteRelative
absolutelyBearishRelativelyBullishCandleStyle
(CandleStyle
): equivalent to the
absolutelyBearishRelativelyBullish
parameter of
CandlestickCartesianLayer.CandleProvider.absoluteRelative
absolutelyBearishRelativelyNeutralCandleStyle
(CandleStyle
): equivalent to the
absolutelyBearishRelativelyNeutral
parameter of
CandlestickCartesianLayer.CandleProvider.absoluteRelative
absolutelyBullishRelativelyBearishCandleStyle
(CandleStyle
): equivalent to the
absolutelyBullishRelativelyBearish
parameter of
CandlestickCartesianLayer.CandleProvider.absoluteRelative
absolutelyBullishRelativelyBullishCandleStyle
(CandleStyle
): equivalent to the
absolutelyBullishRelativelyBullish
parameter of
CandlestickCartesianLayer.CandleProvider.absoluteRelative
absolutelyBullishRelativelyNeutralCandleStyle
(CandleStyle
): equivalent to the
absolutelyBullishRelativelyNeutral
parameter of
CandlestickCartesianLayer.CandleProvider.absoluteRelative
absolutelyNeutralRelativelyBearishCandleStyle
(CandleStyle
): equivalent to the
absolutelyNeutralRelativelyBearish
parameter of
CandlestickCartesianLayer.CandleProvider.absoluteRelative
absolutelyNeutralRelativelyBullishCandleStyle
(CandleStyle
): equivalent to the
absolutelyNeutralRelativelyBullish
parameter of
CandlestickCartesianLayer.CandleProvider.absoluteRelative
absolutelyNeutralRelativelyNeutralCandleStyle
(CandleStyle
): equivalent to the
absolutelyNeutralRelativelyNeutral
parameter of
CandlestickCartesianLayer.CandleProvider.absoluteRelative
bearishCandleStyle
(CandleStyle
): equivalent to the bearish
parameter of
CandlestickCartesianLayer.CandleProvider.absolute
bullishCandleStyle
(CandleStyle
): equivalent to the bullish
parameter of
CandlestickCartesianLayer.CandleProvider.absolute
candleSpacing
(dimension): equivalent to
CandlestickCartesianLayer#candleSpacingDp
candleStyle
(absolute
or
absoluteRelative
): whether to use
CandlestickCartesianLayer.CandleProvider.absolute
or
CandlestickCartesianLayer.CandleProvider.absoluteRelative
minCandleBodyHeight
(dimension): equivalent to
CandlestickCartesianLayer#minCandleBodyHeightDp
neutralCandleStyle
(CandleStyle
): equivalent to the neutral
parameter of
CandlestickCartesianLayer.CandleProvider.absolute
scaleCandleWicks
(boolean): equivalent to
CandlestickCartesianLayer#scaleCandleWicks
CandleStyle
bodyStyle
(LineComponentStyle
): used for the body
bottomWickStyle
(LineComponentStyle
): used for the bottom wick
topWickStyle
(LineComponentStyle
): used for the top wick
ColumnCartesianLayerStyle
column1Style
(ComponentStyle
): the style for columns whose index in a column collection is 3k
(k ∈ N)
column2Style
(ComponentStyle
): the style for columns whose index in a column collection is 1 + 3k
(k ∈ N)
column3Style
(ComponentStyle
): the style for columns whose index in a column collection is 2 + 3k
(k ∈ N)
columnCollectionSpacing
(dimension): the distance between
neighboring column collections
dataLabelRotationDegrees
(floating-point number): the
rotation of data labels in degrees
dataLabelStyle
(TextComponentStyle
): the style of data labels
dataLabelVerticalPosition
(top
,
center
, or bottom
): the vertical position of
each data label relative to the top edge of its respective column
groupedColumnSpacing
(dimension): the distance between
neighboring grouped columns
showDataLabels
(boolean): whether to show data labels
ComponentStyle
color
(color): the background coloroverlayingComponentPadding
(dimension): the padding between
this component and the component with which it is overlaid
overlayingComponentStyle
(ComponentStyle
): a component with which to overlay this component
shapeStyle
(ShapeStyle
): the shape style
strokeColor
(color): the stroke colorstrokeThickness
(dimension): the stroke thicknessTextComponentStyle
android:color
(color): the text colorandroid:ellipsize
(start
, end
,
middle
, none
, or marquee
): the
text truncation behavior
android:fontFamily
(sans-serif
,
sans-serif-*
, or @font
reference): the font
family
android:fontStyle
(normal
or
italic
): the font style
android:padding*
(dimension): the padding for a specific
edge or edge pair of the label
android:padding
(dimension): the padding for each edge of
the label
android:textFontWeight
(integer between 100 and 900): the
font weight
android:textSize
(dimension): the text sizebackgroundStyle
(ComponentStyle
): the background for the label
margin*
(dimension): the size of a specific margin or
margin pair
margin
(dimension): the size of all four marginstextAlignment
(normal
, center
, or
opposite
): the text alignment
typeface
(normal
, sans
,
serif
, or monospace
): the typeface
LineCartesianLayerStyle
line1Style
(LineStyle
): the style for lines whose index in the list of lines in a line chart
is 3k (k ∈ N)
line2Style
(LineStyle
): the style for lines whose index in the list of lines in a line chart
is 1 + 3k (k ∈ N)
line3Style
(LineStyle
): the style for lines whose index in the list of lines in a line chart
is 2 + 3k (k ∈ N)
pointSpacing
(dimension): the point spacingLineComponentStyle
color
(color): the background colorshapeStyle
(ShapeStyle
): the shape of the line
strokeColor
(color): the stroke colorstrokeThickness
(dimension): the stroke thicknessthickness
(dimension): the line thicknessLineStyle
color
(color): the line colorcurvature
(fraction): the strength of the cubic Bézier
curve between each key point on the line
dataLabelRotationDegrees
(floating-point number): the
rotation of data labels in degrees
dataLabelStyle
(TextComponentStyle
): the style of data labels
dataLabelVerticalPosition
(top
,
center
, or bottom
): the vertical position of
each data label relative to its respective point on the line
gradientBottomColor
(color): the bottom color of the
vertical background gradient
gradientTopColor
(color): the top color of the vertical
background gradient
pointSize
(dimension): the point sizepointStyle
(ComponentStyle
): the style of points
showDataLabels
(boolean): whether to show data labels
thickness
(dimension): the thickness of the lineShapeStyle
bottomEndCornerSize
(dimension or faction): the size of the
bottom-end corner
bottomStartCornerSize
(dimension or fraction): the size of
the bottom-start corner
cornerSize
(dimension or fraction): the corner sizecornerTreatment
(rounded
or cut
):
the corner style
dashLength
(dimension): the dash length (0 means no dashes)
gapLength
(dimension): the dash gap length (0 means no
dashes)
topEndCornerSize
(dimension or fraction): the size of the
top-end corner
topStartCornerSize
(dimension or fraction): the size of the
top-start corner