Chart Plots

A plot controls the visual representation of data in a chart.

This section describes properties that are supported by all chart plots.

The Plot Border

A border is drawn around the outside of most plot types. It's possible to change the appearance of the border by modifying the paint and stroke used to draw it.

An outline is drawn around all four sides of the data area. Note that each of the plot's axes may also draw a line along the edge of the data area. See the Axis Line Visible attribute of the axis.

Outline Visible

Flag that controls visibility of the plot outline.

Property name: outlineVisible

Property type: Boolean

Outline Paint

The paint used to draw an outline around the plot area.

Property name: outlinePaint

Property type: Data Table

Outline Stroke

The stroke used to draw an outline around the plot area.

Property name: outlineStroke

Property type: Data Table

The Plot Background

The background area for a plot is the area inside the plot's axes (if the plot has axes). It does not include the chart titles, the legend or the axis labels.

Background Paint

Paint used to fill the plot's background.

Property name: backgroundPaint

Property type: Data Table

Background Alpha

Alpha transparency for the plot's background. The range of values permitted is 0.0f (fully transparent) through to 1.0f (fully opaque).

Property name: backgroundAlpha

Property type: Float

Background Image

Background image for the plot.

Property name: backgroundImage

Property type: Data Block

Background Image Alignment

Alignment type for the background image. Allowed values are:

  • Non-scaling: Center, Top, Bottom, Left, Right, Top Left, Top Right, Bottom Left, and Bottom Right
  • Scaling: Fit Vertical, Fit Horizontal, and Fit (stretch to fill the entire area)

Property name: backgroundImageAlignment

Property type: Integer

Background Image Alpha

Alpha transparency for drawing the background image.

Property name: backgroundImageAlpha

Property type: Float

The "No Data" Message

Some plots will display a message when no data is available for plotting. The message itself is a simple string, controlled by the following properties:

No Data Message

A string shown when there is no data to display.

Property name: noDataMessage

Property type: String

No Data Message Font

The font used to display the "no data" message.

Property name: noDataMessageFont

Property type: Data Table

No Data Message Paint

The paint used to display the "no data" message.

Property name: noDataMessagePaint

Property type: Data Table

Other Properties

Insets

The amount of space to leave around the outside of the plot. See Rectangle Insets.

Property name: insets

Property type: Data Table

Foreground Alpha

Alpha transparency used to draw items in the plot's foreground.

Property name: foregroundAlpha

Property type: Float

Data Loading Indicator

Flag that controls visibility of the data loading indicator.

Property name: dataLoadingIndicator

Property type: Boolean

Was this page helpful?