一覧へ戻る
somonus/react-native-echarts(新しいタブで開きます)
主要言語: HTML
Echarts for react-native. The react-naitve chart.
- star 数
- 720
- watcher 数
- 20
- fork 数
- 301
- issue 数
- 130
- 最終更新
- 2026/07/01
主要言語: HTML
Echarts for react-native. The react-naitve chart.
$ npm install native-echarts --save
The Usage is complete consistent with Echarts
component props:
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import Echarts from 'native-echarts'; export default class app extends Component { render() { const option = { title: { text: 'ECharts demo' }, tooltip: {}, legend: { data:['销量'] }, xAxis: { data: ["衬衫","羊毛衫","雪纺衫","裤子","高跟鞋","袜子"] }, yAxis: {}, series: [{ name: '销量', type: 'bar', data: [5, 20, 36, 10, 10, 20] }] }; return ( <Echarts option={option} height={300} /> ); } } AppRegistry.registerComponent('app', () => app);
##Example
run demo
cd example
npm install
npm start
Open the xcode project in the ios directory and click run
screenshots:
Open the Android project in the android directory with Android Studio and click run.
screenshots:
native-echarts is released under the MIT license.