|
Block Chart |
Top Previous Next |
The block chart is based on XY Plot and XY Renderer. It inherits all their properties. This is what block chart looks like:
Block chart supports two renderers: Block Renderer This renderer uses colored rectangular blocks to represent the data items.
Shape Renderer This renderer uses colored shapes to represent the data items.
Dataset The interval chart supports Custom Data model only. It has the following Source Data Bindings:
Common Properties Width, Height, Bindings, Visible, Background, Border All Data-related properties. All properties of a XY Plot. All properties of a XY Renderer. Custom Properties Paint Scale Paint scale is used to convert values within a certain range to colors (Paints). There are two types of paint scales: Grayscale paint scale specifies shades of gray to represent the values in a range. For values at the lower end of the range, the scale will return dark grey or black, and for values at the upper end of the range, the scale will return light grey or white. It is also possible to specify the alpha transparency for the returned colors. Paint scale properties:
Property name: paintScale Property type: Data Table Paint Scale LegendS The table containing special chart legends (usually just one) displaying the Paint Scales. Properties of a paint scale legend:
Property name: paintScaleLegends Property type: Data Table Block Width Block width in data units (that is, measured against the domain axis). The default value is 1.0. This property is valid for Block renderer. Property name: blockWidth Property type: Float Block Height Block height in data units (that is, measured against the range axis). The default value is 1.0. This property is valid for Block renderer. Property name: blockHeight Property type: Float Block Anchor Anchor point on the block that will be aligned to the (x, y) location on the plot. Available anchor values are Center, Top, Bottom, Left, Right, Top Left, Top Right, Bottom Left, and Bottom Right. This property is valid for Block renderer. Property name: blockAnchor Property type: String Draw Outlines Flag that controls whether or not the renderer draws outlines for the shapes. This property is valid for Shape renderer. Property name: drawOutlines Property type: Boolean Use Outline Paint Flag that controls whether or not the Outline Paint attribute is used for drawing shape outlines. If this flag is set to false, the regular series paint is used for drawing the outlines. This property is valid for Shape renderer. Property name: useOutlinePaint Property type: Boolean Use Fill Paint Flag that controls whether the regular paint or the fill paint in the renderer is used for filling shapes. This property is valid for Shape renderer. Property name: useFillPaint Property type: Boolean Guide Lines Visible Flag that controls whether or not guide lines are drawn. This property is valid for Shape renderer. Property name: guideLinesVisible Property type: Boolean Guide line Paint Paint used to draw the guide lines. This property is valid for Shape renderer. Property name: guideLinePaint Property type: Data Table Guide Line Stroke Stroke used to draw the guide lines. This property is valid for Shape renderer. Property name: guideLineStroke Property type: Data Table Common Events Hidden, Shown, Moved, Resized, Mouse Clicked, Mouse Pressed, Mouse Released, Mouse Entered, Mouse Exited, Mouse Moved, Mouse Wheel Moved, Key Typed, Key Pressed, Key Released, Focus Gained, Focus Lost Additional Examples A block chart using Date range axis:
Another block chart example:
|