Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

echarts error Renderer 'undefined' is not imported #445

Open
gurelsoycaner opened this issue Jan 28, 2025 · 1 comment
Open

echarts error Renderer 'undefined' is not imported #445

gurelsoycaner opened this issue Jan 28, 2025 · 1 comment

Comments

@gurelsoycaner
Copy link

Hi,

Image

Please need some help.
Thanks in advance

@tonyfleck76
Copy link

Just ran into this when updating from an older version. Our problem was that we weren't specifying the components and the renderer we were using. From the docs:

import { NgxEchartsModule } from 'ngx-echarts';
// import echarts core
import * as echarts from 'echarts/core';
// import necessary echarts components
import { BarChart } from 'echarts/charts';
import { GridComponent } from 'echarts/components';
import { CanvasRenderer } from 'echarts/renderers';
echarts.use([BarChart, GridComponent, CanvasRenderer]);

@NgModule({
  imports: [
    NgxEchartsModule.forRoot({ echarts }),
  ],
})
export class AppModule {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants