react-native-chart icon indicating copy to clipboard operation
react-native-chart copied to clipboard

Demo不能使用 Demo cannot be used

Open Sura-zm opened this issue 8 years ago • 9 comments

react:15.4.1 react-native : 0.39.2

react-native-chart : 1.0.8-beta # qq20170426-155013

Sura-zm avatar Apr 26 '17 07:04 Sura-zm

qq20170426-155426

Who gave me a valid Demo,thanks!

Sura-zm avatar Apr 26 '17 07:04 Sura-zm

/**

  • Sample React Native App
  • https://github.com/facebook/react-native
  • @flow */

import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import Chart from 'react-native-chart';

const data = [ [0, 1], [1, 3], [3, 7], [4, 9], ];

export default class newChart extends Component { render() { return ( <View style={styles.container}> <Chart style={styles.chart} data={data} verticalGridStep={4} type="line" showDataPoint={true} color={'#5FC3E5'} gridLineWidth={2} showXAxisLabels={true} gridColor={'#DCDCDC'} axisColor={'#969696'} xAxisHeight={15} xAxisTransform={()=>(['aaaa','bbbb'])} /> </View> ); } }

const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: 'white', }, chart: { width: 200, height: 200, }, });

AppRegistry.registerComponent('newChart', () => newChart);

shaoting0730 avatar May 03 '17 07:05 shaoting0730

thanks! But I failed again! qq20170503-172333 How to solve!Can you help me?thank you very mach!

Sura-zm avatar May 03 '17 09:05 Sura-zm

@pheromone 有没有一个完整的demo,一个完整的项目。 我这儿各种问题,我都找不到解决办法 http://www.zhwios.cn/2016/07/28/reactnative-no-component-found-for-view-with-name-artsurfaceview/ 这个办法到第二步我都不知道怎么办了。 才接触RN,求助,谢谢!!!

Sura-zm avatar May 03 '17 09:05 Sura-zm

我怎么感觉你Xcode里面没有弄对啊. .... 还有react-native-chart这个好像X,Y轴好像只能设置数字.我需要设置汉字的. .我现在用这个 react-native-pathjs-charts . 这个配置环境很简单 @Sura-zm

shaoting0730 avatar May 03 '17 09:05 shaoting0730

我知道Xcode里面有问题,但是修改Xcode的时候指定的那个Libraries文件我没找到,不是react-native下面那个Libraries,是Xcode里面的Libraries没找到

Sura-zm avatar May 03 '17 10:05 Sura-zm

他上面不是有图例吗?就那几步....不行的话加我扣 510738319

shaoting0730 avatar May 04 '17 00:05 shaoting0730

非常感谢,问题已经解决了

Sura-zm avatar May 04 '17 07:05 Sura-zm

As a generic FYI — I am no longer able to maintain this library. I recommend checking out victory-native as it's much more maintained.

tomauty avatar Jul 07 '17 20:07 tomauty