-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60857c3
commit bb4f1b5
Showing
33 changed files
with
317 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"label": "About", | ||
"position": 6 | ||
"position": 7 | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"label": "Upgrading", | ||
"position": 6 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
sidebar_position: 1 | ||
--- | ||
|
||
# Migrate from v1 to v2 | ||
|
||
## Key Changes | ||
- **SVGRenderer** and **SkiaRenderer** are now split. | ||
- **SkiaChart** refactored, no more `ImageSVG` tag. | ||
- Added support for new rendering effects (e.g., shadows). | ||
|
||
## Steps to Migrate from v1 to v2 | ||
|
||
SVGChart has no changes, so you can skip this migration if you are using SVGChart. | ||
|
||
### Summary | ||
|
||
- Replace **SVGRenderer** with **SkiaRenderer**. | ||
- Set `renderer: 'skia'` when initializing the chart. | ||
|
||
### 1. Update Imports | ||
|
||
#### v1 | ||
|
||
```js | ||
import { SVGRenderer, SkiaChart } from '@wuba/react-native-echarts'; | ||
echarts.use([SVGRenderer]); | ||
``` | ||
|
||
#### v2 | ||
|
||
```js | ||
import { SkiaRenderer, SkiaChart } from '@wuba/react-native-echarts'; | ||
echarts.use([SkiaRenderer]); | ||
``` | ||
|
||
### 2. Initialize Chart with SkiaRenderer | ||
|
||
#### v1 | ||
|
||
```js | ||
chart = echarts.init(skiaRef.current, 'light', { | ||
renderer: 'svg', | ||
}); | ||
``` | ||
|
||
#### v2 | ||
|
||
```js | ||
chart = echarts.init(skiaRef.current, 'light', { | ||
renderer: 'skia', | ||
}); | ||
``` |
2 changes: 1 addition & 1 deletion
2
i18n/ja/docusaurus-plugin-content-docs/current/about/_category_.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"label": "About", | ||
"position": 6 | ||
"position": 7 | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
i18n/ja/docusaurus-plugin-content-docs/current/migration/_category_.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"label": "Upgrading", | ||
"position": 6 | ||
} |
Oops, something went wrong.