pissang commented on issue #15138:
URL: https://github.com/apache/echarts/issues/15138#issuecomment-862021854
@msbasanth That's because in the theme files it references the whole
`echarts` package. It's an issue that exists for a long time. You can extract
the theme option and register it manually
dark.js:
```ts
export default const darkTheme = {
color: ...,
....
}
```
chart.js
```js
import darkTheme from './themes/dark';
echarts.registerTheme('dark', darkTheme);
```
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]