AreaChart
Inherits from: XYChart > Chart > Parent > Resizable > Node
Overview
AreaChart - Plots the area between the line that connects the data points and the 0 line on the Y axis.
Profile: common
Variable Summary
| name | type | Default Value | description |
|---|---|---|---|
| xAxis | ValueAxis |
The X axis, by default it is along the bottom of the plot |
|
| yAxis | ValueAxis |
The Y axis, by default it is on the left side of the plot |
|
| data | AreaChart.Series |
The chart data series |
|
| dataOpacity | Number |
The opacity of all data symbols, this is applied to each indervidual area so they are layered |
Inherited Variables
XYChart
| name | type | Default Value | description |
|---|---|---|---|
| plotBackgroundFill | Paint |
The fill used for plot background rectangle defined by the two axis |
|
| plotBackgroundStroke | Paint |
The stroke used for plot background rectangle defined by the two axis |
|
| plotBackgroundStrokeWidth | Number |
The stroke width used for plot background rectangle defined by the two axis |
|
| verticalGridLineVisible | Boolean |
True if vertical grid lines should be drawn |
|
| verticalGridLineStroke | Paint |
The stroke paint for vertical grid lines |
|
| verticalGridLineStrokeWidth | Number |
The stroke width for vertical grid lines |
|
| verticalGridLineStrokeDashArray | Number |
The stroke dash array for vertical grid lines |
|
| verticalAlternateRowFill | Paint |
The fill for vertical alternative painting |
|
| horizontalGridLineVisible | Boolean |
True if horizontal grid lines should be drawn |
|
| horizontalGridLineStroke | Paint |
The stroke paint for horizontal grid lines |
|
| horizontalGridLineStrokeWidth | Number |
The stroke width for horizontal grid lines |
|
| horizontalGridLineStrokeDashArray | Number |
The stroke dash array for horizontal grid lines |
|
| horizontalAlternateRowFill | Paint |
The fill for horizontal alternative painting |
|
| verticalZeroLineVisible | Boolean | true |
If this is true and the vertical axis has both positive and negative values then a aditional axis line will be drawn at the zero point |
| horizontalZeroLineVisible | Boolean | true |
If this is true and the horizontal axis has both positive and negative values then a aditional axis line will be drawn at the zero point |
| customBackgroundContent | Node |
Custom content that is drawn under the data and over the top of plot background and gridlines |
Chart
| name | type | Default Value | description |
|---|---|---|---|
| title | String |
The chart title |
|
| titleFont | Font |
|
|
| titleFill | Paint |
|
|
| insets | Insets |
The insets between the charts available space (width x height) and the content(title and plot) |
|
| titleGap | Number |
The gap between the chart title and the chart plot area |
|
| titleSide | Side |
The side of the chart where the title is displayed |
|
| chartBackgroundFill | Paint |
Fill for the chart background which is the complete area of chart (width x height) |
|
| chartBackgroundStroke | Paint |
Stroke for the chart background which is the complete area of chart (width x height) |
|
| chartBackgroundStrokeWidth | Number |
Stroke width for the chart background which is the complete area of chart (width x height) |
|
| legendVisible | Boolean | true |
True if the legend should be visible |
| legendSide | Side | Side.BOTTOM |
The side of the chart where the legend should be displayed |
| legendGap | Number |
The gap between the chart legend and the chart plot area |
|
| hoverStroke | Paint |
The stroke paint of the outline of a data item that has a action attached |
|
| hoverStrokeWidth | Number |
The stroke width of the outline of a data item that has a action attached |
Resizable
| name | type | Default Value | description |
|---|---|---|---|
| width | Number |
The width of the Any javafx.scene.Node subclass which mixes in |
|
| height | Number |
The height of the Any javafx.scene.Node subclass which mixes in |
Node
| name | type | Default Value | description |
|---|---|---|---|
| id | String |
The id of this |
|
| styleClass | String |
A String identifier which can be used to logically group Nodes, specifically for an external style engine. This variable is exactly analogous to the styleClass attribute on an HTML element. |
|
| style | String |
A string representation of the CSS style associated with this specific Node. This is exactly analogous to the "style" attribute on an HTML element, but uses the syntax defined in JavaFX CSS. |
|
| visible | Boolean | true |
Specifies whether this |
| cursor | Cursor | null |
Defines the mouse cursor for this |
| opacity | Number | 1.0 |
Specifies how opaque (that is, solid) the A #visible node with any opacity setting still receives mouse events and can receive keyboard focus. For example, if you want to have a large invisible rectangle overlay all Nodes in the scene graph in order to intercept mouse events but not be visible to the user, you could create a large Rectangle that had an opacity of 0%. Opacity is specified as a value between 0 and 1. Values less than 0 or greater than 1 are clipped to 0 and 1 respectively. On some platforms ImageView might not support opacity variable. |
| clip | Node | null |
Specifies a For example, you can use an javafx.scene.image.ImageView Node as a mask to represent the Clip. Or you could use one of the geometric shape Nodes such as javafx.scene.shape.Rectangle or javafx.scene.shape.Circle. Or you could use a javafx.scene.text.Text node to represent the Clip. See the class documentation for Node for scene graph structure restrictions on setting the clip. If these restrictions are violated by a change to the clip variable, the change is ignored and the previous value of the clip variable is restored. Note: this is a conditional feature. See javafx.runtime.ConditionalFeature#SHAPE_CLIP ConditionalFeature.SHAPE_CLIP for more information. |
| cache | Boolean | false |
A performance hint to the system to indicate that this |
| cacheHint | CacheHint | CacheHint.DEFAULT |
Additional hint for controlling bitmap caching. Under certain circumstances, such as animating nodes that are very expensive to render, it is desirable to be able to perform transformations on the node without having to regenerate the cached bitmap. An option in such cases is to perform the transforms on the cached bitmap itself. This technique can provide a dramatic improvement to animation performance, though may also result in a reduction in visual quality. The It is possible to enable the cacheHint only at times when your node is animating. In this way, expensive nodes can appear on screen with full visual quality, yet still animate smoothly. Example:
Note that cacheHint is only a hint to the system. Depending on the details of the node or the transform, this hint may be ignored.
If |
| effect | Effect | null |
Specifies an effect to apply to this Note: this is a conditional feature. See javafx.runtime.ConditionalFeature#EFFECT ConditionalFeature.EFFECT for more information. |
| disable | Boolean | false |
Sets the individual disabled state of this |
| pickOnBounds | Boolean | false |
Defines how the picking computation is done for this node when triggered by a |
| managed | Boolean | true |
Defines whether or not this node's layout will be managed by it's parent. Each parent class follows a strategy for laying out managed children during the scene's layout pass:
If a |
| layoutX | Number | 0 |
Defines the X coordinate of the translation that is added to the transformed coordinates of this For example, if
|
| layoutY | Number | 0 |
Defines the Y coordinate of the translation that is added to the transformed coordinates of this For example, if
|
| layoutInfo | LayoutInfoBase |
Hook for node-specific layout information used by layout containers. If the node is not a child of a container which supports layout info, this variable will be ignored. Note that layoutInfo object literals may be shared across nodes, which means altering the vars in layoutInfo will affect all such nodes. |
|
| transforms | Transform | [] |
Defines the sequence of javafx.scene.transform.Transform objects to be applied to this By default, #layoutBounds is defined as the local bounds with all the transforms in this sequence applied. |
| translateX | Number | 0 |
Defines the X coordinate of the translation that is added to the transformed coordinates of this This variable can be used to alter the location of a Node without disturbing its layout bounds, which makes it useful for animating a node's location. |
| translateY | Number | 0 |
Defines the Y coordinate of the translation that is added to the transformed coordinates of this This variable can be used to alter the location of a Node without disturbing its layout bounds, which makes it useful for animating a node's location. |
| translateZ | Number | 0 |
Defines the Z coordinate of the translation that is added to the transformed coordinates of this This variable can be used to alter the location of a Node without disturbing its layout bounds, which makes it useful for animating a node's location. Note: this is a conditional feature. See javafx.runtime.ConditionalFeature#SCENE3D ConditionalFeature.SCENE3D for more information. |
| scaleX | Number | 1.0 |
Defines the factor by which coordinates are scaled about the center of the object along the X axis of this This scale factor is not included in #layoutBounds by default, which makes it ideal for scaling the entire node after all effects and transforms have been taken into account. The pivot point about which the scale occurs is the center of the untransformed #layoutBounds. |
| scaleY | Number | 1.0 |
Defines the factor by which coordinates are scaled about the center of the object along the Y axis of this This scale factor is not included in #layoutBounds by default, which makes it ideal for scaling the entire node after all effects and transforms have been taken into account. The pivot point about which the scale occurs is the center of the untransformed #layoutBounds. |
| scaleZ | Number | 1.0 |
Defines the factor by which coordinates are scaled about the center of the object along the Z axis of this This scale factor is not included in #layoutBounds by default, which makes it ideal for scaling the entire node after all effects and transforms have been taken into account. The pivot point about which the scale occurs is the center of the rectangular bounds formed by taking #boundsInLocal and applying all the transforms in the #transforms[] sequence. Note: this is a conditional feature. See javafx.runtime.ConditionalFeature#SCENE3D ConditionalFeature.SCENE3D for more information. |
| rotate | Number | 0.0 |
Defines the angle of rotation about the This rotation factor is not included in #layoutBounds by default, which makes it ideal for rotating the entire node after all effects and transforms have been taken into account. The pivot point about which the rotation occurs is the center of the untransformed #layoutBounds. Note that because the pivot point is computed as the center of this |
| rotationAxis | Point3D | Rotate.Z_AXIS |
Defines the axis of rotation of this Note: this is a conditional feature. See javafx.runtime.ConditionalFeature#SCENE3D ConditionalFeature.SCENE3D for more information. |
| blocksMouse | Boolean | false |
If |
| focusTraversable | Boolean | false |
Specifies whether this |
