RealGrid2 API
Interface
SparkColumnRenderer

SparkColumnRenderer

A renderer to display a Series column that displays one or more data values simultaneously as a Spark Column.

Signature:

export interface SparkColumnRenderer extends SparkChartRenderer

Extends: SparkChartRenderer

Remarks

It is useful for briefly and intuitively displaying data flow within a certain range, such as a period.

Can only be used in SeriesColumn.

Inherits SparkChartRenderer.

LastStyle, highStyle, and lowStyle of SparkChartRenderer are applied by default.

[Default]

lastStyle: "rg-sparkcolumn-renderer-last";

highStyle: "rg-sparkcolumn-renderer-high";

lowStyle: "rg-sparkcolumn-renderer-low";

[Superclass]

CellRenderer - SparkChartRenderer

Example

//string type
column.renderer = 'sparkcolumn';
 
// object type
column.renderer = {
      "type": "sparkcolumn",
      "highStyle": "custom-sparkcolumn-renderer-high",
      "barWidth" 0.9
}

Properties

PropertyTypeDescription
barWidthnumberPercentage of width occupied by one graph bar
chartStylestringChart style name
type'sparkcolumn'Type: Spark Column

Properties Desc

barWidth

Percentage of width occupied by one graph bar

Type - number

Remarks:

Cannot exceed 1


chartStyle

Chart style name

Type - string


type

Type: Spark Column

Type - 'sparkcolumn'