Chart Action Card

  • Shows card with chart and icon bar.

Example Link

Features/Functionality

  • Shows chart with chart changing types.
  • On click of chart type icons, chart type is changed.
  • On click of chart callback is called.
  • Component is responsive.
  • It is cross browser compatible. (Edge, Firefox, chrome).

Basic Usage

Dependencies

Definition

<cst-s-chart-action-card schema.bind="${schema}"></cst-s-chart-action-card>

Schema Description

AttributeValueDescription
idstring typeIdentifier for component.
chartSchemaobject typeSchema to show chart data.
iconBarSchemaobject typeSchema to show icon bar.

options

object typeOptions for icon component.
onClickstring typeMethod to be called on click of child icons.
elmInstanceany typeIcon element instance.
customParentContextany typeParent Context to call callback methods.

subAccessCtrl

object typeAccess Ctrl for the component.

subTheme

object typeTheme for the component.

subFont

object typeFont for the component.

subStyle

object typeStyle for the component.

subRawAttributes

object typeRaw Attributes for the component.

options

PropertyValueDescriptionValue
iconBarSidetop/bottom/left/rightDirection to show icon bar

Schema Example

let schema = {
chartSchema: {}, // Instance of Single Chart
iconBarSchema: {},
options: {
iconBarSide: 'left'
},
elmInstance: {},
customParentContext: {}
onClick: ''
subAccessCtrl: {},
subTheme: {},
subFont: {},
subStyle: {},
subRawAttributes: {}
}