twp0217 / ngx-echarts

Apache ECharts component for Angular(基于 Angular 的 Apache ECharts 组件)
https://twp0217.github.io/ngx-echarts/
82 stars 25 forks source link

how to set chart theme #4

Closed gmfu closed 7 years ago

gmfu commented 7 years ago

Use <echarts-ng2 [option]="option" [theme]="'dark'"> ; It's not work.

twp0217 commented 7 years ago

You need to import theme js in component. For example: import 'echarts/theme/dark';

I have updated the example of a theme. link