Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PieChartPro reverses data #897

Open
sladik-maksym opened this issue Nov 7, 2024 · 0 comments
Open

PieChartPro reverses data #897

sladik-maksym opened this issue Nov 7, 2024 · 0 comments

Comments

@sladik-maksym
Copy link

sladik-maksym commented Nov 7, 2024

Description

data reverses when use PieChartPro

Steps to reproduce

import { Colors, useTheme } from '@rneui/themed';
import { PieChartPro } from 'react-native-gifted-charts';

import { CHART } from '@src/constants';

const RADIUS = CHART.WIDTH * 0.4;

const getMockData = (colors: Colors) => {
return [
{ value: 100, color: colors.categoriesShopping },
{ value: 200, color: colors.categoriesHome },
{ value: 50, color: colors.categoriesTaxes },
{ value: 250, color: colors.categoriesFood },
{ value: 150, color: colors.categoriesTravel },
];
};

export const PieChart = () => {
const { theme } = useTheme();

return (

);
};

PieChartPro
image

PieChart
image

Snack or a link to a repository

No response

version of react-native-gifted-charts

1.4.47

React Native version

0.75.4

Platforms

iOS

Workflow

None

@sladik-maksym sladik-maksym changed the title PieChartPro reverse data PieChartPro reverses data Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant