react-native-chart-kit

How to resolve Error while updating property 'd' of a view managed by:RNSVGPath InvalidNumber

时光毁灭记忆、已成空白 提交于 2021-02-11 15:27:28
问题 I need to load my sql server data using react-native-chart-kit ,but when I use this code I get this error : Error while updating property 'd' of a view managed by:RNSVGPath null InvalidNumber import React from 'react'; import {Text,View,Dimensions} from 'react-native'; import {LineChart} from "react-native-chart-kit"; export default class Home extends React.Component { constructor(props) { super(props); this.state = { isLoading: true, data: { labels: ["Gen", "Feb", "Mar", "Apr", "Mag", "Giu",

Solid bars in bar chart with react-native-chart-kit

爷,独闯天下 提交于 2021-02-11 07:37:32
问题 I am using https://www.npmjs.com/package/react-native-chart-kit and am trying to make a chart to match the following design spec: I can get most of the options to work with the code attached at the end of this question, however I can't seem to figure out how to remove the opacity of each individual bar, so it ends up looking like this: I've been poring through the source code and playing with props and styles to no avail.. any help would be greatly appreciated! const { width: screenWidth } =

import Y label in barChart at react native chart kit

我只是一个虾纸丫 提交于 2021-02-10 20:51:26
问题 I want to put in Ylabels these variables [80,90,100] but the graph starts from the min variable i put in the array I found a way to do it in line chart but it does not work on BarChart const data = { labels: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri"], datasets: [ { data: [89,85,96,97,94,91,88] } ] }; const graphScreen=()=>{ const screenWidth = Dimensions.get("window").width; return( <View > <BarChart style={{ marginVertical: 8, borderRadius: 16 }} chartConfig={{ backgroundColor: "#e26a00",

import Y label in barChart at react native chart kit

故事扮演 提交于 2021-02-10 20:46:38
问题 I want to put in Ylabels these variables [80,90,100] but the graph starts from the min variable i put in the array I found a way to do it in line chart but it does not work on BarChart const data = { labels: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri"], datasets: [ { data: [89,85,96,97,94,91,88] } ] }; const graphScreen=()=>{ const screenWidth = Dimensions.get("window").width; return( <View > <BarChart style={{ marginVertical: 8, borderRadius: 16 }} chartConfig={{ backgroundColor: "#e26a00",