Support registerTransform in echarts.use
- Dominant language
- TypeScript
- Stars
- 67.3k
- Forks
- 19.8k
- Avg merge
- 11d 14h
- Merged PRs (30d)
- 8
Description
### What problem does this feature solve?
Expose the ability of registerTransform in a neat way.
### What does the proposed API look like?
```ts
import * as echarts from 'echarts';
import * as ecStat from 'ecStat';
// call registerTransform internally for all transformers in ecStat.
echarts.use(ecStat);
```
And
```ts
import * as echarts from 'echarts';
import {histogram} from 'ecStat/transform';
// call registerTransform internally.
echarts.use(histogram);
```
See ecomfe/echarts-stat#36
Contributor guide
Research direction
Start by tracing the existing echarts.use API and the registerTransform references in the codebase. Compare the behavior with ecomfe/echarts-stat#36; done means both shown usage forms work, including passing the full ecStat module and an individual histogram transformer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100