You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Create a Ref for the SkiaChart component and use a View container to wrap it. Use onLayout to obtain the container's width and height for later assignment to the ECharts chart.
@@ -82,7 +82,7 @@ const option = {
82
82
83
83
```tsx
84
84
let chart =echarts.init(skiaRef.current, "light", {
Copy file name to clipboardexpand all lines: docs/getting-started/write-a-simple-line-chart.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -8,20 +8,20 @@ Next let's try to draw the most basic diagram - Basic Line Chart.
8
8
9
9
To see how it looks like in the browser, you can visit the [echarts editor](https://echarts.apache.org/examples/en/editor.html?c=line-simple) and try to modify the configuration to see the changes.
10
10
11
-
1. import echarts, @wuba/react-native-echarts, react. Here I have only import SkiaChart and SVGRenderer.
11
+
1. import echarts, @wuba/react-native-echarts, react. Here I have only import SkiaChart and SkiaRenderer.
If you want to use the react-native-svg, just replace the SkiaChart with SvgChart.
124
+
If you want to use the react-native-svg, just replace the SkiaChart with SvgChart and use 'svg' as renderer.
125
125
126
126
Next you can find more configurations to use in @wuba/react-native-echarts from the [echarts examples](https://echarts.apache.org/examples/en/index.html).
0 commit comments