You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/05/25 14:56:02 UTC
[GitHub] [echarts] dvago opened a new issue #15034: Example request: util.each import
dvago opened a new issue #15034:
URL: https://github.com/apache/echarts/issues/15034
### Version
5.1.1
### Reproduction link
[https://echarts.apache.org/examples/en/editor.html?c=line-race](https://echarts.apache.org/examples/en/editor.html?c=line-race)
### Steps to reproduce
Given the url (https://echarts.apache.org/examples/en/editor.html?c=line-race)
I would like to know what's the correct way to import the `each` method to enable the use of `filter` without importing the whole library. See line 11 from your example.
I'm currently importing the library modules via:
```js
import { use } from 'echarts/core'
import { SVGRenderer } from 'echarts/renderers'
import { LineChart } from 'echarts/charts'
import {
AxisPointerComponent,
GridComponent,
TooltipComponent,
DatasetComponent,
LegendComponent,
ToolboxComponent,
TitleComponent,
MarkLineComponent,
MarkPointComponent,
DataZoomComponent,
DataZoomInsideComponent,
DataZoomSliderComponent,
} from 'echarts/components'
```
### What is expected?
The possibility to import utilities such as each without importing the whole echarts library
### What is actually happening?
Can't find anything within the documentation nor online with a sample
---
I tried few random imports without success.
E.g.
```js
import { each } from 'echarts/util'
```
of course it was just me guessing it.
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
<!-- This issue is in English. DO NOT REMOVE -->
--
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] 100pah commented on issue #15034: Example request: util.each import
Posted by GitBox <gi...@apache.org>.
100pah commented on issue #15034:
URL: https://github.com/apache/echarts/issues/15034#issuecomment-851884778
```ts
import { zrUtil } from 'echarts';
console.log(zrUtil.each);
```
--
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] echarts-bot[bot] commented on issue #15034: Example request: util.each import
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15034:
URL: https://github.com/apache/echarts/issues/15034#issuecomment-847939896
Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.
In the meanwhile, please make sure that it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
*A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
Have a nice day! 🍵
--
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] susiwen8 closed issue #15034: Example request: util.each import
Posted by GitBox <gi...@apache.org>.
susiwen8 closed issue #15034:
URL: https://github.com/apache/echarts/issues/15034
--
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] dvago commented on issue #15034: Example request: util.each import
Posted by GitBox <gi...@apache.org>.
dvago commented on issue #15034:
URL: https://github.com/apache/echarts/issues/15034#issuecomment-852001910
Thanks @100pah, it seems working. that was easy :)
You might want to showcase it within the documentation as well, it would be valuable
--
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] 100pah edited a comment on issue #15034: Example request: util.each import
Posted by GitBox <gi...@apache.org>.
100pah edited a comment on issue #15034:
URL: https://github.com/apache/echarts/issues/15034#issuecomment-851884778
```ts
import { util } from 'echarts';
console.log(util.each);
```
--
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org