lmarquinez commented on issue #18314:
URL: https://github.com/apache/echarts/issues/18314#issuecomment-2009744872
Actually I can't, as I said before I have an application as a library where
I am using the echarts package to create some graphics and there it is working
correctly, I have problems in the application when I install this package.
Echarts is a peerDependency of this package. Should I add something in the
angular.json? For example in the scripts section like:
```
"scripts": [
"node_modules/echarts/dist/echarts.js",
"node_modules/echarts/theme/macarons.js",
],
```
In the aplication as library I am only importing the theme in the module
this way:
```
import 'echarts/theme/macarons.js';
import * as echarts from 'echarts';
@NgModule({
imports: [
NgxEchartsModule.forRoot({
echarts
})
],
```
And I am using this way to create the graphics:
`<div echarts [options]="echartsOption" theme="macarons"></div>`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]