file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
examples/LineChart/CaloriesBurnt.tsx | TypeScript (TSX) | import React from 'react';
import {View, Text, StyleSheet} from 'react-native';
import {LineChart} from '../../src/LineChart';
import { ruleTypes } from 'gifted-charts-core';
const CaloriesBurnt = () => {
const data1 = [
{value: 70},
{value: 36},
{value: 50},
{value: 40},
{value: 18},
{value:... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/LineChart/ChartWithAdjustingPointer.tsx | TypeScript (TSX) | import React from 'react';
import {View, Text} from 'react-native';
import {LineChart} from '../../src/LineChart';
import { ruleTypes } from 'gifted-charts-core';
const ChartWithAdjustingPointer = () => {
const ptData = [
{value: 160, date: '1 Apr 2022'},
{value: 180, date: '2 Apr 2022'},
{value: 190, da... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/LineChart/ChartWithPointer.tsx | TypeScript (TSX) | import React from 'react';
import {View, Text} from 'react-native';
import {LineChart} from '../../src/LineChart';
import { ruleTypes } from 'gifted-charts-core';
const ChartWithPointer = () => {
const ptData = [
{value: 160, date: '1 Apr 2022'},
{value: 180, date: '2 Apr 2022'},
{value: 190, date: '3 Ap... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/LineChart/DataSetSteppedChart.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {LineChart} from '../../src/LineChart';
import {DataSet} from 'gifted-charts-core';
const DataSetSteppedChart = () => {
const lineData = [
{value: 100},
{value: 110},
{value: 108},
{value: 158},
{value: 156},
{value: 178},
... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/LineChart/FocusedIndex.tsx | TypeScript (TSX) | import React, {useState} from 'react';
import {View} from 'react-native';
import {LineChart} from '../../src/LineChart';
const FocusedIndex = () => {
const [fIndex, setFIndex] = useState(2);
const points: any[] = [66, 50, 48, 60, 75, 70, 72].map((value, idx, arr) => ({
value,
}));
points[6].customDataPoin... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/LineChart/GradientLineAndLabel.tsx | TypeScript (TSX) | import React from 'react';
import {View, Text} from 'react-native';
import {LinearGradient, Stop} from 'react-native-svg';
import {LineChart} from '../../src/LineChart';
const GradientLineAndLabel = () => {
const offset = 130;
const customDataPointComp = v => {
const isUp = v + offset > 175;
const color =... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/LineChart/HighlightedRange.tsx | TypeScript (TSX) | import React from 'react';
import {LineChart} from '../../src/LineChart';
const HighlightedRange = () => {
const data = [
{value: 6},
{value: 6},
{value: 8},
{value: 5},
{value: 5},
{value: 8},
{value: 0},
{value: 8},
{value: 10},
{val... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/LineChart/LineChartEndReached.tsx | TypeScript (TSX) | import React, {useState, useEffect} from 'react';
import {View, Alert} from 'react-native';
import {LineChart} from '../../src/LineChart';
const LineChartEndReached = () => {
const [onEndReached, setOnEndReached] = useState(false);
const [num, setNum] = useState(9);
const [lineData, setLineData] = useState([
... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/LineChart/LineChartTwo.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {LineChart} from '../../src/LineChart';
const LineChartTwo = () => {
const lineData = [
{value: 0},
{value: 10},
{value: 8},
{value: 58},
{value: 56},
{value: 78},
{value: 74},
{value: 98},
];
const lineData2 = ... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/LineChart/OuterPointerLegend.tsx | TypeScript (TSX) | import React, {useState} from 'react';
import {Text, View} from 'react-native';
import {LineChart} from '../../src/LineChart';
const OuterPointerLegend = () => {
const d1 = [{value: 5}, {value: 8}, {value: 7}, {value: 9}];
const d2 = [{value: 3}, {value: 4}, {value: 5}, {value: 6}];
const d3 = [{value: 1}, {valu... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/LineChart/PopulationChart.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {PopulationPyramid} from '../../src/PopulationPyramid';
const PopulationChart = () => {
const popData = [
{left: 30, right: 40, midAxisLabel: '~115'},
{left: 40, right: 44, midAxisLabel: '~105'},
{left: 55, right: 57, midAxisLabel: '~95... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/LineChart/ScrollingChartWithPointer.tsx | TypeScript (TSX) | import React from 'react';
import {View, Text} from 'react-native';
import {LineChart} from '../../src/LineChart';
import { ruleTypes } from 'gifted-charts-core';
const ScrollingChartWithPointer = () => {
const ptData = [
{value: 160, date: '1 Apr 2022'},
{value: 180, date: '2 Apr 2022'},
{value: 190, da... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/LineChart/SecondaryLineChart.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {LineChart} from '../../src/LineChart';
const SecondaryLineChart = () => {
const d1 = [
{value: 110},
{value: 90},
{value: 100},
{value: 120},
{value: 100, label: '2005', showXAxisIndex: true},
{value: 80},
... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/LineChart/SecondaryLineChartFromDataSet.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {LineChart} from '../../src/LineChart';
import { DataSet } from 'gifted-charts-core';
const SecondaryLineChart = () => {
const d1 = [
{value: 110},
{value: 90},
{value: 100},
{value: 120},
{value: 100, label: '2005',... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/LineChart/Segmented.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {LineChart} from '../../src/LineChart';
const Segmented = () => {
const lineData = [
{value: 0},
{value: 10},
{value: 8},
{value: 58},
{value: 56},
{value: 78},
{value: 74},
{value: 98},
];
const lineData2 = [
... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/LineChart/SegmentedDataSet.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {LineChart} from '../../src/LineChart';
import {DataSet} from 'gifted-charts-core';
const SegmentedDataSetChart = () => {
const lineData = [
{value: 0},
{value: 10},
{value: 8},
{value: 58},
{value: 56},
{value: 78},
{va... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/LineChart/SegmentedDataSetCurved.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {LineChart} from '../../src/LineChart';
import {DataSet} from 'gifted-charts-core';
const SegmentedDataSetCurved = () => {
const lineData = [
{value: 0},
{value: 10},
{value: 8},
{value: 58},
{value: 56},
{value: 78},
{v... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/LineChart/SimpleBlueLine.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {LineChart} from '../../src/LineChart';
const SimpleBlueLine = () => {
const lineData = [
{value: 0},
{value: 20},
{value: 18},
{value: 40},
{value: 36},
{value: 60},
{value: 54},
{value: 85},
];
return (
<Vi... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/LineChart/SimpleBlueLineWithGivenNumberOfVerticalLines.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {LineChart} from '../../src/LineChart';
const SimpleBlueLineWithGivenNumberOfVerticalLines = () => {
const lineData = [
{value: 0},
{value: 20},
{value: 18},
{value: 40},
{value: 36},
{value: 60},
{value: 54},
{value... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/PieChart/BothSideFocusPie.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {PieChart} from '../../src/PieChart';
const BothSideFocusPie = () => {
const pieData = [
{value: 54, color: '#177AD5', text: '54%'},
{value: 30, color: '#79D2DE', text: '30%', focused: true},
{value: 26, color: '#ED6665', text: '26%'},
... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/PieChart/InwardFocusPie.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {PieChart} from '../../src/PieChart';
const InwardFocusPie = () => {
const pieData = [
{value: 54, color: '#177AD5', text: '54%'},
{value: 30, color: '#79D2DE', text: '30%', focused: true},
{value: 26, color: '#ED6665', text: '26%'},
... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/PieChart/PieChartFocusOnPress.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {PieChart} from '../../src/PieChart';
const PieChartFocusOnPress = () => {
const pieData = [
{value: 54, color: '#177AD5', text: '54%'},
{value: 30, color: '#79D2DE', text: '30%'},
{value: 26, color: '#ED6665', text: '26%'},
];
retu... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/PieChart/PieSingleData.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {PieChart} from '../../src/PieChart';
const PieSingleData = () => {
const pieData = [{value: 54, color: '#177AD5', text: '54%'}];
return (
<View style={{borderWidth:1}}>
<PieChart
donut
showText
textColor="black"... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/PieChart/PieWithZero.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {PieChart} from '../../src/PieChart';
const PieWithZero = () => {
const pieData = [
{value: 0, text: '0'},
{value: 1, text: '1'},
];
const pieData2 = [
{value: 0, text: '0'},
{value: 0, text: '0'},
];
return (
<View styl... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/PieChart/ProgressPie.tsx | TypeScript (TSX) | import React from 'react';
import {View, Text} from 'react-native';
import {PieChart} from '../../src/PieChart';
const ProgressPie = () => {
const pieData = [
{value: 70, color: '#177AD5'},
{value: 30, color: 'lightgray'},
];
return (
<View style={{borderWidth:1}}>
<PieChart
donut
... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/PieChart/SimplePie.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {PieChart} from '../../src/PieChart';
const SimplePie = () => {
const pieData = [
{value: 54, color: '#177AD5', text: '54%'},
{value: 30, color: '#79D2DE', text: '30%'},
{value: 26, color: '#ED6665', text: '26%'},
];
return (
<V... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/PieChart/SplitPie.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {PieChart} from '../../src/PieChart';
const SplitPie = () => {
const pieData = [
{value: 54, color: '#177AD5'},
{value: 40, color: '#79D2DE'},
{value: 20, color: '#ED6665', shiftX: -10, shiftY: -18},
];
return (
<View style={{bo... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/PieChart/ThreeDPie.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {PieChart} from '../../src/PieChart';
const ThreeDPie = () => {
const pieData = [
{value: 54, color: '#177AD5'},
{value: 40, color: '#79D2DE'},
{value: 20, color: '#ED6665'},
];
return (
<View style={{borderWidth:1}}>
<Pi... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/RadarChart/MultipleLineLabel.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {RadarChart} from '../../src/RadarChart';
const MultipleLineLabel = () => {
return (
<View style={{backgroundColor: 'white', flex: 1}}>
<RadarChart
chartSize={400}
data={[50, 60, 10, 70, 30]}
labelConfigArray={[
... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/audience-requested-charts/ClickToChangeBarColor.tsx | TypeScript (TSX) | import React, {useState} from 'react';
import {View, Text} from 'react-native';
import {BarChart} from 'react-native-gifted-charts';
export const ClickToChangeBarColor = () => {
const data = [
{value: 50, xValue: '4AM'},
{value: 80, xValue: '8AM'},
{value: 90, xValue: '12AM'},
{value: 70, xValue: '4P... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/audience-requested-charts/FocusOnPress.tsx | TypeScript (TSX) | import React, {useState} from 'react';
import {View, Text} from 'react-native';
import {LineChart} from '../../src/LineChart';
export const FocusOnPress = () => {
const customTooltip = (value: number) => {
return (
<View
style={{
padding: 6,
borderWidth: 1,
borderColor... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/audience-requested-charts/Mgan.tsx | TypeScript (TSX) | import React from 'react';
import {
Alert,
Dimensions,
SafeAreaView,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native';
import {BarChart} from 'react-native-gifted-charts';
function Mgan(): JSX.Element {
const screenWidth = Dimensions.get('window').... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/audience-requested-charts/MultiSegmented.tsx | TypeScript (TSX) | import React from 'react';
import {LineChart} from '../../src/LineChart';
export const MultiSegmented = () => {
const data = [
{value: 5},
{value: 8},
{value: 7}, // break in line from previous to this point
{value: 4},
{value: 6},
{value: 0, hideDataPoint: true}, // invisible, here's a break... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/audience-requested-charts/OnlyLine.tsx | TypeScript (TSX) | import React from 'react';
import {StyleSheet, View, Dimensions} from 'react-native';
import {LineChart} from '../../src/LineChart';
const colors = {
background: '#121212',
darkestAccent: '#1C1C1C',
colorAccent: '#17E5D8',
};
const screenWidth = Dimensions.get('window').width;
const OnlyLine = () => {
const ... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/audience-requested-charts/PieFocus.tsx | TypeScript (TSX) | import React, { useCallback, useEffect, useState } from "react";
import { GestureResponderEvent, Pressable, Text, View, StyleSheet } from "react-native";
import { PieChart } from "../../src/PieChart";
const PieChartComponent: React.FC = ({
data,
donut = false,
radius = 100,
showText = true,
textSiz... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/audience-requested-charts/SecondaryLineBar.tsx | TypeScript (TSX) | import React from 'react';
import {View,Animated} from 'react-native'
import {BarChart} from '../../src/BarChart';
const SecondaryLineBar = () => {
const animatedHeight = new Animated.Value(0);
Animated.timing(animatedHeight,{
toValue: 300,
duration:2000,
useNativeDriver: false
}).start();
return (... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/audience-requested-charts/animOnDataChange.tsx | TypeScript (TSX) | import React, {useEffect, useState} from 'react';
import {Text, View} from 'react-native';
import {LineChart} from '../../src/LineChart';
import {ruleTypes, clone} from 'gifted-charts-core';
// Fördefinierade sökvägar för moduler
const AnimOnDataChange = () => {
const lcomp = v => (
<Text style={{width: 50, col... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/audience-requested-charts/audn.tsx | TypeScript (TSX) | import React from 'react';
import {View, Text} from 'react-native';
import {LineChart,yAxisSides} from 'react-native-gifted-charts';
const Audn = () => {
const iData = [
{value: 180},
{value: 80},
{value: 270},
{value: 300},
{value: 500},
{value: 8},
{value: 270},
{value: 300},
{... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/audience-requested-charts/barLineSeparateData.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {BarChart,ruleTypes} from 'react-native-gifted-charts';
export const BarLine = props => {
const data = [
{value: 12},
{value: 4},
{value: 18},
{value: 16},
{value: 5},
{value: 11},
{value: 16},
{value: 5},
{value... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/audience-requested-charts/highlightXaxis.tsx | TypeScript (TSX) | import React, {useState} from 'react';
import {View, Text} from 'react-native';
import {BarChart} from '../../src/BarChart';
import {barDataItem, ruleTypes} from 'gifted-charts-core';
export const HighlightXaxis = () => {
const [selectedIndex, setSelectedIndex] = useState(-1);
const MyComponent = (labelText, inde... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/audience-requested-charts/multiPointer.tsx | TypeScript (TSX) | import React, { useState } from "react"
import { View } from "react-native"
import { LineChart } from "../../src/LineChart"
export const MultiPointer = () => {
const data= [
{value:10, label:'2'},
{value:15, label:'3'},
{value:18, label:'4'},
{value:15, label:'5'},
{value:12, label:'6'},
{val... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/audience-requested-charts/triangularBars.tsx | TypeScript (TSX) | import React from 'react';
import {BarChart,ruleTypes} from 'react-native-gifted-charts';
import {View, Text, StyleSheet} from 'react-native';
export const Triangular = () => {
const TriangleCorner = props => {
return (
<View
style={[
triangleStyles.triangleCorner,
props.style,
... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/awesome-charts/AutoScrollLine.tsx | TypeScript (TSX) | import React, {useRef, useState, useEffect} from 'react';
import {View} from 'react-native';
import {LinearGradient,Stop} from 'react-native-svg';
import {LineChart} from '../../src/LineChart';
const AutoScrollLine = () => {
const ref = useRef(null);
const [x, setX] = useState(10);
const data = [
{value: 6}... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/criticalReview.tsx | TypeScript (TSX) | import {barDataItem} from 'gifted-charts-core';
import React from 'react';
import {Text, View} from 'react-native';
import {BarChart} from '../src/BarChart';
import {LineChart} from '../src/LineChart';
const Separator = () => <View style={{height: 30}} />;
export const mergeAlternate = (ar1: barDataItem[], ar2: barDa... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
examples/index.tsx | TypeScript (TSX) | import React, {useState} from 'react';
import {
View,
Text,
StyleSheet,
TouchableOpacity,
SafeAreaView,
ScrollView,
Image,
} from 'react-native';
import SimpleBlueBars from './BarChart/SimpleBlueBars';
import SimpleBarsEndReached from './BarChart/SimpleBarsEndReached';
import BarThreeD from './BarChart/B... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
index.js | JavaScript | /**
* @format
*/
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
AppRegistry.registerComponent(appName, () => App);
| Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
ios/GiftedCharts/AppDelegate.h | C/C++ Header | #import <React/RCTBridgeDelegate.h>
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate>
@property (nonatomic, strong) UIWindow *window;
@end
| Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
ios/GiftedCharts/AppDelegate.m | Objective-C | #import "AppDelegate.h"
#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#ifdef FB_SONARKIT_ENABLED
#import <FlipperKit/FlipperClient.h>
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
#import <Flip... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
ios/GiftedCharts/main.m | Objective-C | #import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char * argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
| Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
ios/GiftedChartsTests/GiftedChartsTests.m | Objective-C | #import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>
#import <React/RCTLog.h>
#import <React/RCTRootView.h>
#define TIMEOUT_SECONDS 600
#define TEXT_TO_LOOK_FOR @"Welcome to React"
@interface GiftedChartsTests : XCTestCase
@end
@implementation GiftedChartsTests
- (BOOL)findSubviewInView:(UIView *)view matching:(BOOL... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
jest.config.js | JavaScript | module.exports = {
preset: 'react-native',
testEnvironment: 'node',
transform: {
'^.+\\.ts?$': 'ts-jest',
},
transformIgnorePatterns: [
'<rootDir>/node_modules/(?!@ngrx|(?!deck.gl)|ng-dynamic)',
],
// setupFiles: ['./jestSetup.js'],
};
| Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
jestSetup.js | JavaScript | // jestSetup.js
jest.mock('react-native', () => {
const actualReactNative = jest.requireActual('react-native');
return {
...actualReactNative,
Animated: {
...actualReactNative.Animated,
timing: (value, config) => ({
start: (callback) => {
value.setValue(confi... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
metro.config.js | JavaScript | const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
/**
* Metro configuration for React Native
* https://github.com/facebook/react-native
*
* @format
*/
const config = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/BarChart/Animated2DWithGradient.tsx | TypeScript (TSX) | import {useEffect, useRef, useState} from 'react';
import {View, Text, Animated} from 'react-native';
import Svg, {Defs, Rect} from 'react-native-svg';
import Cap from '../Components/BarSpecificComponents/cap';
import LinearGradient from '../Components/common/LinearGradient';
import {Animated2DWithGradientPropsType} fr... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/BarChart/RenderBars.tsx | TypeScript (TSX) | import {View, TouchableOpacity, Animated, Text} from 'react-native';
import AnimatedThreeDBar from '../Components/AnimatedThreeDBar';
import Animated2DWithGradient from './Animated2DWithGradient';
import {
getPropsForAnimated2DWithGradient,
RenderBarsPropsType,
useRenderBars,
} from 'gifted-charts-core';
import T... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/BarChart/RenderStackBars.tsx | TypeScript (TSX) | import {useEffect, useRef} from 'react';
import {View, TouchableOpacity, Text, Animated} from 'react-native';
import Svg, {Defs, Rect} from 'react-native-svg';
import LinearGradient from '../Components/common/LinearGradient';
import {
useRenderStackBars,
BarDefaults,
StackedBarChartPropsType,
} from 'gifted-chart... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/BarChart/index.tsx | TypeScript (TSX) | import {useCallback, useEffect, useMemo, useRef} from 'react';
import {
Animated,
Easing,
I18nManager,
Pressable,
View,
ViewStyle,
} from 'react-native';
import RenderBars from './RenderBars';
import RenderStackBars from './RenderStackBars';
import BarAndLineChartsWrapper from '../Components/BarAndLineChart... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/BarChart/styles.tsx | TypeScript (TSX) | import {StyleSheet} from 'react-native';
export const styles = StyleSheet.create({
container: {
width: '100%',
marginBottom: 40,
marginRight: 40,
},
horizBar: {
flexDirection: 'row',
},
leftLabel: {
justifyContent: 'center',
alignItems: 'center',
},
lastLeftLabel: {
justifyCon... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/BubbleChart/index.tsx | TypeScript (TSX) | import {
BubbleChartPropsType,
BubbleDefaults,
useBubbleChart,
withinMinMaxRange,
} from 'gifted-charts-core';
import BarAndLineChartsWrapper from '../Components/BarAndLineChartsWrapper';
import {
Fragment,
useCallback,
useEffect,
useMemo,
useRef,
useState,
} from 'react';
import {
Animated,
Eas... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/Components/AnimatedThreeDBar/index.tsx | TypeScript (TSX) | import React, {useEffect, useRef} from 'react';
import {View, StyleSheet, Text, Animated} from 'react-native';
import Svg, {Defs, Rect} from 'react-native-svg';
import {styles} from './styles';
import LinearGradient from '../common/LinearGradient';
import {
useAnimatedThreeDBar,
animatedBarPropTypes,
triangleProp... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/Components/AnimatedThreeDBar/styles.tsx | TypeScript (TSX) | import {StyleSheet} from 'react-native';
export const styles = StyleSheet.create({
container: {
width: '150%',
position: 'absolute',
bottom: 0,
overflow: 'hidden',
},
row: {
flexDirection: 'row',
},
});
| Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/Components/BarAndLineChartsWrapper/index.tsx | TypeScript (TSX) | import React, {Fragment, useEffect} from 'react';
import {
View,
ScrollView,
StyleSheet,
I18nManager,
NativeScrollEvent,
} from 'react-native';
import {renderHorizSections} from './renderHorizSections';
import RenderVerticalLines from './renderVerticalLines';
import {
chartTypes,
yAxisSides,
BarAndLineC... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/Components/BarAndLineChartsWrapper/renderHorizSections.tsx | TypeScript (TSX) | import React from 'react';
import {Text, View} from 'react-native';
import Rule from '../lineSvg';
import {styles} from '../../LineChart/styles';
import {
getHorizSectionVals,
yAxisSides,
HorizSectionsType,
horizSectionPropTypes,
chartTypes,
} from 'gifted-charts-core';
export const renderHorizSections = (pr... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/Components/BarAndLineChartsWrapper/renderLineInBarChart/index.tsx | TypeScript (TSX) | import React from 'react';
import {View, Animated} from 'react-native';
import Svg, {Path} from 'react-native-svg';
import {renderSpecificVerticalLines} from './renderSpecificVerticalLines';
import {renderDataPoints} from './renderDataPoints';
import {renderSpecificDataPoints} from './renderSpecificDataPoints';
import ... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/Components/BarAndLineChartsWrapper/renderLineInBarChart/renderDataPoints.tsx | TypeScript (TSX) | import React, {Fragment, useState} from 'react';
import {styles} from '../../../BarChart/styles';
import {TouchableOpacity, View} from 'react-native';
import {getXForLineInBar, getYForLineInBar} from 'gifted-charts-core';
import {
Rect,
Text as CanvasText,
Circle,
ForeignObject,
} from 'react-native-svg';
impor... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/Components/BarAndLineChartsWrapper/renderLineInBarChart/renderSpecificDataPoints.tsx | TypeScript (TSX) | import React, {Fragment} from 'react';
import {getXForLineInBar, getYForLineInBar} from 'gifted-charts-core';
import {Circle, Rect, Text as CanvasText} from 'react-native-svg';
export const renderSpecificDataPoints = (props: any) => {
const {
data,
barWidth,
firstBarWidth,
yAxisLabelWidth,
lineCo... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/Components/BarAndLineChartsWrapper/renderLineInBarChart/renderSpecificVerticalLines.tsx | TypeScript (TSX) | import React from 'react';
import {Rect} from 'react-native-svg';
export const renderSpecificVerticalLines = (props: any) => {
const {
data,
barWidth,
yAxisLabelWidth,
initialSpacing,
spacing,
containerHeight,
lineConfig,
maxValue,
} = props;
return data.map((item: any, index: num... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/Components/BarAndLineChartsWrapper/renderVerticalLines.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {chartTypes} from 'gifted-charts-core';
import {Line, Svg} from 'react-native-svg';
const RenderVerticalLines = (props: any) => {
const {
showVerticalLines, // this is the value passed by user (note that it's not the effective value that is com... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/Components/BarSpecificComponents/barBackgroundPattern.tsx | TypeScript (TSX) | import React from 'react';
import Svg, {Defs, Rect} from 'react-native-svg';
const BarBackgroundPattern = (props: any) => {
const {
barBackgroundPatternFromItem,
barBackgroundPatternFromProps,
patternIdFromItem,
patternIdFromProps,
} = props;
return (
<Svg>
<Defs>
{barBackground... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/Components/BarSpecificComponents/cap.tsx | TypeScript (TSX) | import React from 'react';
import {View} from 'react-native';
import {BarDefaults} from 'gifted-charts-core';
const Cap = (props: any) => {
const {
capThicknessFromItem,
capThicknessFromProps,
capColorFromItem,
capColorFromProps,
capRadiusFromItem,
capRadiusFromProps,
} = props;
return (
... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/Components/BarSpecificComponents/tooltip.tsx | TypeScript (TSX) | import {TooltipProps} from 'gifted-charts-core/dist/utils/types';
import {useState} from 'react';
import {View} from 'react-native';
const Tooltip = (props: TooltipProps) => {
const {
barWidth,
item,
index,
isLast,
leftSpacing,
leftShiftForLastIndexTooltip,
leftShiftForTooltip,
render... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/Components/Rotatable.tsx | TypeScript (TSX) | import React, {useRef, useState, useEffect} from 'react';
import {
View,
PanResponder,
Animated,
LayoutChangeEvent,
StyleSheet,
} from 'react-native';
type RotatablePieProps = {
initialAngle: number; // degrees
size: number; // width/height
children: React.ReactNode; // your Pie chart
onAngleChange?:... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/Components/common/LinearGradient.tsx | TypeScript (TSX) | import React from 'react';
type LinearGradientProps = {
style?: any;
start?: {x: number; y: number};
end?: {x: number; y: number};
colors: string[];
children?: any;
};
let LinearGradient: React.FC<LinearGradientProps>;
try {
// for bare react-native projects
LinearGradient = require('react-native-linea... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/Components/common/Pointer.tsx | TypeScript (TSX) | import {View} from 'react-native';
export const Pointer = (props: any) => {
const {
pointerX,
pointerYLocal,
pointerComponent,
pointerHeight,
pointerRadius,
pointerWidth,
pointerItemLocal,
pointerColorLocal,
pointerIndex,
} = props;
if (isNaN(pointerYLocal) || typeof pointerYL... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/Components/common/StripAndLabel.tsx | TypeScript (TSX) | import {View} from 'react-native';
import Svg, {Line} from 'react-native-svg';
import {
StripAndLabelProps,
getTopAndLeftForStripAndLabel,
} from 'gifted-charts-core';
export const StripAndLabel = (props: StripAndLabelProps) => {
const {
pointerX,
pointerLabelWidth,
pointerRadius,
pointerWidth,
... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/Components/lineSvg.tsx | TypeScript (TSX) | import * as React from 'react';
import {ColorValue} from 'react-native';
import Svg, {G, Path} from 'react-native-svg';
import {ruleTypes} from 'gifted-charts-core';
type ruleProps = {
thickness: number;
width: number;
color: ColorValue | string | any;
type: string;
dashWidth: number;
dashGap: number;
};
... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/LineChart/LineChartBicolor.tsx | TypeScript (TSX) | import React, {Fragment, useCallback, useEffect, useMemo, useRef} from 'react';
import {View, Animated, Easing, Text} from 'react-native';
import {styles} from './styles';
import Svg, {
Path,
LinearGradient,
Stop,
Circle,
Rect,
Text as CanvasText,
} from 'react-native-svg';
import BarAndLineChartsWrapper fr... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/LineChart/index.tsx | TypeScript (TSX) | import {Fragment, useCallback, useEffect, useMemo, useRef} from 'react';
import {
View,
Animated,
Easing,
Text,
Dimensions,
ColorValue,
I18nManager,
ViewStyle,
} from 'react-native';
import {isWebApp, screenWidth, usePrevious} from '../utils';
import Svg, {
Path,
LinearGradient,
Stop,
Circle,
... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/LineChart/styles.tsx | TypeScript (TSX) | import {StyleSheet} from 'react-native';
export const styles = StyleSheet.create({
container: {
width: '100%',
marginBottom: 40,
marginRight: 40,
},
horizBar: {
flexDirection: 'row',
},
leftLabel: {
justifyContent: 'center',
alignItems: 'center',
},
lastLeftLabel: {
justifyCon... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/PieChart/index.tsx | TypeScript (TSX) | import {View, Text, TextStyle} from 'react-native';
import {PieChartMain} from './main';
import {PieChartPropsType, pieColors, usePieChart} from 'gifted-charts-core';
import {isWebApp} from '../utils';
import {useState} from 'react';
import {RotatablePie} from '../Components/Rotatable';
export const PieChart = (props:... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/PieChart/main.tsx | TypeScript (TSX) | import React, {useState} from 'react';
import {Pressable, View} from 'react-native';
import Svg, {
Path,
Circle,
Text as SvgText,
Defs,
RadialGradient,
Stop,
G,
Line,
} from 'react-native-svg';
import {
getPieChartMainProps,
PieChartMainProps,
pieColors,
} from 'gifted-charts-core';
import {isWebA... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/PieChartPro/index.tsx | TypeScript (TSX) | import React, {useEffect} from 'react';
import {
PieChartPropsType,
pieColors,
usePiePro,
} from 'gifted-charts-core';
import {
Defs,
Path,
Stop,
Svg,
Text as SvgText,
RadialGradient,
} from 'react-native-svg';
import {Animated, View} from 'react-native';
export const PieChartPro = (props: PieChartPr... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/PopulationPyramid/index.tsx | TypeScript (TSX) | import React, {Fragment} from 'react';
import {View} from 'react-native';
import {
PopulationPyramidPropsType,
RulesProps,
ruleTypes,
usePopulationPyramid,
} from 'gifted-charts-core';
import {
ClipPath,
Line,
Rect,
Svg,
Text as SvgText,
Use,
} from 'react-native-svg';
import {screenWidth} from '../... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/RadarChart/index.tsx | TypeScript (TSX) | import {Fragment, useEffect} from 'react';
import {Animated, View} from 'react-native';
import Svg, {
Line,
Polygon,
Circle,
Text as SvgText,
Defs,
RadialGradient,
Stop,
TextAnchor,
AlignmentBaseline,
TSpan,
G,
} from 'react-native-svg';
import {RadarChartProps, useRadarChart} from 'gifted-charts... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/index.tsx | TypeScript (TSX) | export {BarChart} from './BarChart';
export {PieChart} from './PieChart';
export {PieChartPro} from './PieChartPro';
export {LineChart} from './LineChart';
export {LineChartBicolor} from './LineChart/LineChartBicolor';
export {PopulationPyramid} from './PopulationPyramid';
export {RadarChart} from './RadarChart';
expor... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
src/utils/index.ts | TypeScript | import {useEffect, useRef} from 'react';
import {Dimensions, Platform} from 'react-native';
// eslint-disable-next-line @typescript-eslint/no-var-requires
const versionString = require('react-native/package.json').version;
const versionAr = versionString?.split?.('.') ?? '';
const msb = Number(versionAr[0]);
const mi... | Abhinandan-Kushwaha/react-native-gifted-charts | 1,264 | The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates. | TypeScript | Abhinandan-Kushwaha | Abhinandan Kushwaha | Quince |
app/build.gradle.kts | Kotlin | plugins {
id("com.android.application")
id("kotlin-android")
id("kotlin-kapt")
id("org.jmailen.kotlinter")
}
android {
compileSdk = libs.versions.compileSdk.get().toInt()
defaultConfig {
applicationId = "com.adammcneilly.tournament.bracket"
minSdk = libs.versions.minSdk.get().t... | AdamMc331/ComposeTournamentBracket | 7 | A sample app showing a tournament bracket UI in Jetpack Compose. | Kotlin | AdamMc331 | Adam McNeilly | Airbnb |
app/src/main/java/com/adammcneilly/tournament/bracket/MainActivity.kt | Kotlin | package com.adammcneilly.tournament.bracket
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.Arran... | AdamMc331/ComposeTournamentBracket | 7 | A sample app showing a tournament bracket UI in Jetpack Compose. | Kotlin | AdamMc331 | Adam McNeilly | Airbnb |
app/src/main/java/com/adammcneilly/tournament/bracket/TestData.kt | Kotlin | package com.adammcneilly.tournament.bracket
import com.adammcneilly.tournament.bracket.displaymodels.BracketDisplayModel
import com.adammcneilly.tournament.bracket.displaymodels.BracketMatchDisplayModel
import com.adammcneilly.tournament.bracket.displaymodels.BracketRoundDisplayModel
import com.adammcneilly.tournament... | AdamMc331/ComposeTournamentBracket | 7 | A sample app showing a tournament bracket UI in Jetpack Compose. | Kotlin | AdamMc331 | Adam McNeilly | Airbnb |
app/src/main/java/com/adammcneilly/tournament/bracket/theme/Color.kt | Kotlin | @file:Suppress("MagicNumber")
package com.adammcneilly.tournament.bracket.theme
import androidx.compose.ui.graphics.Color
val Purple200 = Color(0xFFBB86FC)
val Purple500 = Color(0xFF6200EE)
val Teal200 = Color(0xFF03DAC5)
| AdamMc331/ComposeTournamentBracket | 7 | A sample app showing a tournament bracket UI in Jetpack Compose. | Kotlin | AdamMc331 | Adam McNeilly | Airbnb |
app/src/main/java/com/adammcneilly/tournament/bracket/theme/Shape.kt | Kotlin | package com.adammcneilly.tournament.bracket.theme
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Shapes
import androidx.compose.ui.unit.dp
val Shapes = Shapes(
small = RoundedCornerShape(4.dp),
medium = RoundedCornerShape(4.dp),
large = RoundedCornerShape(0.d... | AdamMc331/ComposeTournamentBracket | 7 | A sample app showing a tournament bracket UI in Jetpack Compose. | Kotlin | AdamMc331 | Adam McNeilly | Airbnb |
app/src/main/java/com/adammcneilly/tournament/bracket/theme/Theme.kt | Kotlin | package com.adammcneilly.tournament.bracket.theme
import android.annotation.TargetApi
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.dynamicDarkColorScheme... | AdamMc331/ComposeTournamentBracket | 7 | A sample app showing a tournament bracket UI in Jetpack Compose. | Kotlin | AdamMc331 | Adam McNeilly | Airbnb |
app/src/main/java/com/adammcneilly/tournament/bracket/theme/Type.kt | Kotlin | package com.adammcneilly.tournament.bracket.theme
import androidx.compose.material3.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
// Set of Material typography styles to start with... | AdamMc331/ComposeTournamentBracket | 7 | A sample app showing a tournament bracket UI in Jetpack Compose. | Kotlin | AdamMc331 | Adam McNeilly | Airbnb |
build.gradle.kts | Kotlin | // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
maven(url = "https://plugins.gradle.org/m2/")
}
dependencies {
classpath(libs.detekt.gradle.plugin)
classpath(lib... | AdamMc331/ComposeTournamentBracket | 7 | A sample app showing a tournament bracket UI in Jetpack Compose. | Kotlin | AdamMc331 | Adam McNeilly | Airbnb |
buildscripts/detekt.gradle | Gradle | apply plugin: "io.gitlab.arturbosch.detekt"
detekt {
config = files("${rootProject.projectDir}/config/detekt/detekt.yml")
reports {
html.enabled = true
xml.enabled = true
txt.enabled = true
}
} | AdamMc331/ComposeTournamentBracket | 7 | A sample app showing a tournament bracket UI in Jetpack Compose. | Kotlin | AdamMc331 | Adam McNeilly | Airbnb |
buildscripts/githooks.gradle | Gradle | // https://blog.sebastiano.dev/ooga-chaka-git-hooks-to-enforce-code-quality/
static def isLinuxOrMacOs() {
def osName = System.getProperty('os.name').toLowerCase(Locale.ROOT)
return osName.contains('linux') || osName.contains('mac os') || osName.contains('macos')
}
task copyGitHooks(type: Copy) {
descripti... | AdamMc331/ComposeTournamentBracket | 7 | A sample app showing a tournament bracket UI in Jetpack Compose. | Kotlin | AdamMc331 | Adam McNeilly | Airbnb |
buildscripts/publish-module.gradle | Gradle | apply plugin: "maven-publish"
apply plugin: "signing"
task androidSourcesJar(type: Jar) {
archiveClassifier.set('sources')
if (project.plugins.findPlugin("com.android.library")) {
// For Android libraries
from android.sourceSets.main.java.srcDirs
from android.sourceSets.main.kotlin.srcD... | AdamMc331/ComposeTournamentBracket | 7 | A sample app showing a tournament bracket UI in Jetpack Compose. | Kotlin | AdamMc331 | Adam McNeilly | Airbnb |
buildscripts/publish-root.gradle | Gradle | ext["signing.keyId"] = ''
ext["signing.password"] = ''
ext["signing.key"] = ''
ext["ossrhUsername"] = ''
ext["ossrhPassword"] = ''
ext["sonatypeStagingProfileId"] = ''
File secretPropsFile = project.rootProject.file('local.properties')
if (secretPropsFile.exists()) {
// Read local.properties file first if it exist... | AdamMc331/ComposeTournamentBracket | 7 | A sample app showing a tournament bracket UI in Jetpack Compose. | Kotlin | AdamMc331 | Adam McNeilly | Airbnb |
buildscripts/versionsplugin.gradle | Gradle | apply plugin: "com.github.ben-manes.versions"
def isNonStable = { String version ->
def stableKeyword = ['RELEASE', 'FINAL', 'GA'].any { it -> version.toUpperCase().contains(it) }
def regex = /^[0-9,.v-]+(-r)?$/
return !stableKeyword && !(version ==~ regex)
}
tasks.named("dependencyUpdates").configure {
... | AdamMc331/ComposeTournamentBracket | 7 | A sample app showing a tournament bracket UI in Jetpack Compose. | Kotlin | AdamMc331 | Adam McNeilly | Airbnb |
git-hooks/pre-commit.sh | Shell | #!/bin/sh
######## KTLINT-GRADLE HOOK START ########
CHANGED_FILES="$(git --no-pager diff --name-status --no-color --cached | awk '$1 != "D" && $2 ~ /\.kts|\.kt/ { print $2}')"
if [ -z "$CHANGED_FILES" ]; then
echo "No Kotlin staged files."
exit 0
fi;
echo "Running ktlint over these files:"
echo "$CHANGED_F... | AdamMc331/ComposeTournamentBracket | 7 | A sample app showing a tournament bracket UI in Jetpack Compose. | Kotlin | AdamMc331 | Adam McNeilly | Airbnb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.