Element: <oj-chart-group>

Oracle® JavaScript Extension Toolkit (JET)


  • 5.1.0
  • ojchart



JET Chart Group

The oj-chart-group element is used to declare group properties in the groupTemplate slot of oj-chart.

<oj-chart data="[[dataProvider]]">
 <template slot='groupTemplate'>
     label-style='[[$current.depth == 1 ? {"fontWeight":"bold"} : {"fontStyle":"italic"}]]'>



interface ChartGroupElement

Typescript Import Format
//To typecheck the element APIs, import as below.
import { ChartGroupElement } from "ojs/ojchart";

//For the transpiled javascript to load the element's module, import as below
import "ojs/ojchart";

For additional information visit:


drilling :"on"|"off"|"inherit"

Whether drilling is enabled on the group label. Drillable objects will show a pointer cursor on hover and fire an ojDrill event on click. To enable drilling for all group labels at once, use the drilling attribute in the top level.
Supported Values:
Value Description
inherit Drilling behavior will be inherited from the chart.
off Drilling will not be enabled on group label.
on Drilling will be enabled on group label.
Default Value:
  • "inherit"

label-style :Partial<CSSStyleDeclaration>

The CSS style object defining the style of the group label text. The following style properties are supported: backgroundColor, borderColor, borderRadius, borderWidth, color, cursor, fontFamily, fontSize, fontStyle, fontWeight, textDecoration. Only applies to a categorical axis.

name :string

The name of the group.

short-desc :string

The description of the group. This is used for customizing the tooltip text and only applies to a categorical axis.