react-native-echarts

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

  • 所有者: somonus/react-native-echarts
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

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.

主要指标

概览
名称与所有者somonus/react-native-echarts
主编程语言HTML
编程语言JavaScript (语言数: 5)
平台
许可证MIT License
所有者活动
创建于2016-10-21 03:03:49
推送于2022-04-25 20:42:05
最后一次提交2018-12-20 16:54:48
发布数5
最新版本名称0.5.0 (发布于 )
第一版名称0.1.0 (发布于 )
用户参与
星数721
关注者数21
派生数305
提交数41
已启用问题?
问题数169
打开的问题数124
拉请求数8
打开的拉请求数8
关闭的拉请求数10
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?