MyGit

somonus/react-native-echarts

Fork: 309 Star: 721 (更新于 2024-09-01 15:31:09)

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-08-01 15:00:09)

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-09-20 15:17:57 windmill-labs/windmill

2024-09-18 15:36:42 squidfunk/mkdocs-material

2024-09-14 18:39:12 Tencent/tdesign-miniprogram

2024-09-13 22:39:58 Unstructured-IO/unstructured

2024-09-07 13:25:31 web-platform-tests/wpt

2024-08-30 08:12:32 NorthwoodsSoftware/GoJS