@covalent/echarts
Version:
Teradata UI Platform Echarts Module
60 lines (48 loc) • 1.31 kB
Markdown
`td-chart` element is the base component that instantiates an echarts object to facilitate its usage.
- config?: any
- Sets the JS config object if you choose to not use the property inputs.
- Note: [config] input properties will override input values
- themeName?: string
- theme to be applied into chart instance
- renderer?: 'svg' | 'canvas'
- sets the rendering mode for the chart.
- defaults to 'canvas'
- group?: string
- group name in which the chart instance will be connected to
- chartClick
- event thrown when a chart element has been clicked.
- chartDblclick
- event thrown when a chart element has been double clicked.
- chartContextmenu
- event thrown when a chart element has been right-clicked.
Import the [CovalentBaseEchartsModule] in your NgModule:
```typescript
import { CovalentBaseEchartsModule } from '@covalent/echarts/base';
@NgModule({
imports: [
CovalentBaseEchartsModule,
...
],
...
})
export class MyModule {}
```
```html
<td-chart
[]="300"
[]="{...}"
[]="'light'"
[]="'canvas'"
[]="'group1'"
(chartClick)="doSomething()"
(chartDblclick)="doSomething()"
(chartContextmenu)="doSomething()"
>
</td-chart>
```