Expandable Chart Card

  • Shows an expandable card with Chart and Selecting feature.

Example Link

Features/Functionality

  • Shows card with expand and collapse feature.
  • Labels are also shown.
  • Labels can be selected.
  • Component is responsive.
  • It is cross browser compatible. (Edge, Firefox, chrome).

Basic Usage

Dependencies

Definition

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

Schema Description

AttributeValueDescription
idstring typeIdentifier for component.
chartSchemaobject typeSchema to show chart data.
selectedIdstring typeId which is selected.

heading

object typeHeading of the card.

options

object typeOptions for icon component.

sideLabelArr

object array typeArray of labels to be shown.
elmInstanceany typeIcon element instance.
customParentContextany typeParent Context to call callback methods.

Item

PropertyValueDescriptionValue
idstring typeId
labelstring typeLabel to be shown.
colorstring typeColor to be shown.

options

PropertyValueDescriptionValue
isCardOpenboolean typeIf card should be opened or closed

Schema Example

let schema = {
chartSchema: {}, // Instance of Single Chart
heading: {},
options: {
isCardOpen:
},
sideLabelArr: [
{
id:'',
label: '',
color: ''
}
]
elmInstance: {},
customParentContext: {}