lt-echarts
v0.0.7
Published
provide a component for echarts in angular
Downloads
7
Maintainers
Readme
Installation
# npm install
npm i echarts -S
npm i lt-echarts -S
# yarn install
yarn add echarts
yarn add lt-echarts
Usage
- import LtEchartsModule
import { LtEchartsModule } from 'lt-echarts';
@NgModule({
declarations: [...],
imports: [LtEchartsModule,...],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
- use lt-echarts in your component
<div style="height:300px;"><lt-echarts [ltOptions]="options"></lt-echarts></div>
@Component({
...
})
export class AppComponent {
options = { ... };
}