MyGit

somonus/react-native-echarts

Fork: 308 Star: 722 (更新于 2024-12-12 15:24:48)

license: MIT

Language: HTML .

Echarts for react-native. The react-naitve chart.

最后发布版本: 0.5.0 ( 2018-12-20 16:57:31)

GitHub网址

native-echarts

NPM Version npm License

install

$ npm install native-echarts --save

Usage

The Usage is complete consistent with Echarts

component props:

  • option (object): The option for echarts: Documentation
  • width (number): The width of the chart. The default value is the outer container width.
  • height (number): The height of the chart. The default value is 400.
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

IOS

Open the xcode project in the ios directory and click run

screenshots:

image

Android

Open the Android project in the android directory with Android Studio and click run.

screenshots:

image

License

native-echarts is released under the MIT license.

最近版本更新:(数据更新于 2024-10-03 17:04:49)

2018-12-20 16:57:31 0.5.0

2016-11-03 10:48:18 0.3.0

2016-11-01 17:33:14 0.2.0

2016-10-21 15:57:02 0.1.1

somonus/react-native-echarts同语言 HTML最近更新仓库

2024-12-22 12:33:20 Qexo/Qexo

2024-12-21 22:03:42 nova-video-player/aos-AVP

2024-12-19 12:37:19 Tencent/tdesign-miniprogram

2024-12-16 18:24:30 squidfunk/mkdocs-material

2024-12-11 02:46:08 windmill-labs/windmill

2024-12-10 15:24:15 web-infra-dev/midscene