Skip to content

Latest commit

 

History

History
598 lines (450 loc) · 10.8 KB

attrs.md

File metadata and controls

598 lines (450 loc) · 10.8 KB

This documentation is auto generated from attrs.xml.

Androidplot XML Attributes

Attributes are broken down by element followed by either their type or list of accepted values. Supported Elements:

Plot

Plot's attrs are available in all Plot types.

markupEnabled

boolean

renderMode

  • use_background_thread
  • use_main_thread

marginTop

dimension

marginBottom

dimension

marginLeft

dimension

marginRight

dimension

paddingTop

dimension

paddingBottom

dimension

paddingLeft

dimension

paddingRight

dimension

title

dimension

titleTextSize

string

titleTextColor

dimension

backgroundColor

color

borderColor

color

borderThickness

color

XYPlot

XML attributes for the XYPlot class.

previewMode

TODO

domainStepMode

  • subdivide
  • increment_by_val
  • increment_by_pixels

domainStep

dimension|float|integer

rangeStepMode

  • subdivide
  • increment_by_val
  • increment_by_pixels

rangeStep

dimension|float|integer

domainTitle

string

domainTitleTextColor

color

domainTitleTextSize

dimension

domainTitleHeightMode

  • absolute
  • relative
  • fill

domainTitleWidthMode

  • absolute
  • relative
  • fill

domainTitleHeight

dimension|float|integer

domainTitleWidth

dimension|float|integer

domainTitleHorizontalPositioning

  • absolute_from_left
  • absolute_from_right
  • absolute_from_center
  • relative_from_left
  • relative_from_right
  • relative_from_center

HorizontalPositioning component of the HorizontalPosition of the TextLabelWidget that displays the domain title. See Positioning Widgets documentation.

domainTitleVerticalPositioning

  • absolute_from_top
  • absolute_from_bottom
  • absolute_from_center
  • relative_from_top
  • relative_from_bottom
  • relative_from_center

VerticalPositioning component of the VerticalPosition of the TextLabelWidget that displays the domain title. See Positioning Widgets documentation.

domainTitleHorizontalPosition

dimension|float|integer

float value component of the HorizontalPosition of the TextLabelWidget that displays the domain title. See Positioning Widgets documentation.

domainTitleVerticalPosition

dimension|float|integer

float value component of the VerticalPosition of the TextLabelWidget that displays the domain title. See Positioning Widgets documentation.

domainTitleAnchor

  • top_middle
  • left_top
  • left_middle
  • left_bottom
  • right_top
  • right_middle
  • right_bottom
  • bottom_middle
  • center

domainTitleVisible

boolean

rangeTitle

string

rangeTitleTextColor

color

rangeTitleTextSize

dimension

rangeTitleHeightMode

  • absolute
  • relative
  • fill

rangeTitleWidthMode

  • absolute
  • relative
  • fill

rangeTitleHeight

dimension|float|integer

rangeTitleWidth

dimension|float|integer

rangeTitleHorizontalPositioning

  • absolute_from_left
  • absolute_from_right
  • absolute_from_center
  • relative_from_left
  • relative_from_right
  • relative_from_center

rangeTitleVerticalPositioning

  • absolute_from_top
  • absolute_from_bottom
  • absolute_from_center
  • relative_from_top
  • relative_from_bottom
  • relative_from_center

rangeTitleHorizontalPosition

dimension|float|integer

rangeTitleVerticalPosition

dimension|float|integer

rangeTitleAnchor

  • top_middle
  • left_top
  • left_middle
  • left_bottom
  • right_top
  • right_middle
  • right_bottom
  • bottom_middle
  • center

rangeTitleVisible

boolean

drawGridOnTop

boolean
(default is false) When set to true, grid lines are drawn on top of rendered series data instead of underneath.

graphHeightMode

  • absolute
  • relative
  • fill

graphWidthMode

  • absolute
  • relative
  • fill

graphHeight

dimension|float|integer

graphWidth

dimension|float|integer

graphRotation

  • none
  • ninety_degrees
  • negative_ninety_degrees
  • one_hundred_eighty_degrees

graphHorizontalPositioning

  • absolute_from_left
  • absolute_from_right
  • absolute_from_center
  • relative_from_left
  • relative_from_right
  • relative_from_center

HorizontalPositioning component of the HorizontalPosition of the XYGraphWidget. See Positioning Widgets documentation.

graphVerticalPositioning

  • absolute_from_top
  • absolute_from_bottom
  • absolute_from_center
  • relative_from_top
  • relative_from_bottom
  • relative_from_center

VerticalPositioning component of the VerticalPosition of the XYGraphWidget. See Positioning Widgets documentation.

graphHorizontalPosition

dimension|float|integer

float value component of the HorizontalPosition of the XYGraphWidget. See Positioning Widgets documentation.

graphVerticalPosition

dimension|float|integer

float value component of the VerticalPosition of the XYGraphWidget. See Positioning Widgets documentation.

graphAnchor

  • top_middle
  • left_top
  • left_middle
  • left_bottom
  • right_top
  • right_middle
  • right_bottom
  • bottom_middle
  • center

graphVisible

boolean

graphMarginTop

dimension

graphMarginBottom

dimension

graphMarginLeft

dimension

graphMarginRight

dimension

graphPaddingTop

dimension

graphPaddingBottom

dimension

graphPaddingLeft

dimension

graphPaddinRight

dimension

gridClippingEnabled

boolean

gridInsetTop

dimension

gridInsetBottom

dimension

gridInsetLeft

dimension

gridInsetRight

dimension

lineLabelInsetTop

dimension
Top edge of a rectangle relative to the XYGraphWidget border upon which line labels will be anchored.

lineLabelInsetBottom

dimension
Bottom edge of a rectangle relative to the XYGraphWidget border upon which line labels will be anchored.

lineLabelInsetLeft

dimension
Left edge of a rectangle relative to the XYGraphWidget border upon which line labels will be anchored.

lineLabelInsetRight

dimension
Right edge of a rectangle relative to the XYGraphWidget border upon which line labels will be anchored.

lineLabels

  • top
  • bottom
  • left
  • right

Enable line labels on one or more edge of the graph. For example, to enable labels on the left and bottom edges:

ap:lineLabels="left|bottom"

lineLabelAlignTop

  • left
  • center
  • right

Text alignment of line labels drawn on top edge of the plot. This alignment is applied relative to the line label insets defined by lineLabelInsetTop.

lineLabelAlignBottom

  • left
  • center
  • right

Text alignment of line labels drawn on bottom edge of the plot. This alignment is applied relative to the line label insets defined by lineLabelInsetBottom.

lineLabelAlignLeft

  • left
  • center
  • right

Text alignment of line labels drawn on left edge of the plot. This alignment is applied relative to the line label insets defined by lineLabelInsetLeft.

lineLabelAlignRight

  • left
  • center
  • right

Text alignment of line labels drawn on right edge of the plot. This alignment is applied relative to the line label insets defined by lineLabelInsetRight.

lineLabelRotationTop

float
Angle at which line labels on the plot's top edge are drawn.

lineLabelRotationBottom

float
Angle at which line labels on the plot's bottom edge are drawn.

lineLabelRotationLet

float
Angle at which line labels on the plot's left edge are drawn.

lineLabelRotationRight

float
Angle at which line labels on the plot's right edge are drawn.

domainLineThickness

dimension

rangeLineThickness

dimension

domainLineColor

color

rangeLineColor

color

domainOriginLineThickness

dimension

rangeOriginLineThickness

dimension

domainOriginLineColor

color

rangeOriginLineColor

color

lineLabelTextSizeTop

dimension

lineLabelTextSizeBottom

dimension

lineLabelTextSizeLeft

dimension

lineLabelTextSizeRight

dimension

lineLabelTextColorTop

color

lineLabelTextColorBottom

color

lineLabelTextColorLeft

color

lineLabelTextColorRight

color

lineExtensionTop

dimension

lineExtensionBottom

dimension

lineExtensionLeft

dimension

lineExtensionRight

dimension

gridBackgroundColor

color
background color of the grid portion of the XYGraphWidget

graphBackgroundColor

color
background color of the XYGraphWidget

legendHeightMode

  • absolute
  • relative
  • fill

legendWidthMode

  • absolute
  • relative
  • fill

legendHeight

dimension|float|integer

legendWidth

dimension|float|integer

legendHorizontalPositioning

HorizontalPositioning component of the HorizontalPosition of the XYLegendWidget. See Positioning Widgets documentation.

  • absolute_from_left
  • absolute_from_right
  • absolute_from_center
  • relative_from_left
  • relative_from_right
  • relative_from_center

legendVerticalPositioning

VerticalPositioning component of the VerticalPosition of the XYLegendWidget. See Positioning Widgets documentation.

  • absolute_from_top
  • absolute_from_bottom
  • absolute_from_center
  • relative_from_top
  • relative_from_bottom
  • relative_from_center

legendHorizontalPosition

dimension|float|integer

float value component of the HorizontalPosition of the XYLegendWidget. See Positioning Widgets documentation.

legendVerticalPosition

dimension|float|integer

float value component of the VerticalPosition of the XYLegendWidget. See Positioning Widgets documentation.

legendAnchor

  • top_middle
  • left_top
  • left_middle
  • left_bottom
  • right_top
  • right_middle
  • right_bottom
  • bottom_middle
  • center

legendTextSize

dimension

legendTextColor

color

legendIconHeightMode

  • absolute
  • relative
  • fill

legendIconWidthMode

  • absolute
  • relative
  • fill

legendIconHeight

dimension|float|integer

legendIconWidth

dimension|float|integer

legendVisible

boolean

pieBorderThickness

dimension
Determines how far beyond the graph's edge each domain grid line will extend.

pieBorderThickness

dimension
Determines how far beyond the graph's edge each range grid line will extend.

PieChart

TODO

pieBorderColor

color

pieBorderThickness

dimension