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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?