Code Monkey home page Code Monkey logo

Comments (5)

bekbull avatar bekbull commented on September 26, 2024 1

Hi @bekbull Can you share the complete code with data and a video of the output?

Hi. I've solved this issue by adding some delay before chart starts rendering.

from react-native-gifted-charts.

nikhilhooda35 avatar nikhilhooda35 commented on September 26, 2024
<View>
  <BarChart
    animationDuration={900}
    animationEasing
    overflowTop={30}
    noOfSections={6}
    labelWidth={100}
    width={500}
    barWidth={23}
    spacing={10}
    data={barData}
    stepValue={120}
    yAxisThickness={0}
    xAxisThickness={0}
    isAnimated
    rulesColor={'#fff'}
    rotateLabel={true}
    xAxisTextNumberOfLines={1}
    xAxisLabelsVerticalShift={50}
    xAxisLabelTextStyle={{
      fontSize: 12,
      top: 30,
      left: 12,
      position: 'absolute',
    }}
    renderTooltip={(item, index) => {
      return (
        <View
          style={{
            marginBottom: 5,
            marginLeft: -6,
            backgroundColor: '#ffcefe',
            paddingHorizontal: 6,
            paddingVertical: 4,
            borderRadius: 4,
          }}>
          <Text>{item.value}</Text>
        </View>
      );
    }}
  />

  <BarChart
    animationDuration={900}
    animationEasing
    overflowTop={30}
    noOfSections={6}
    labelWidth={100}
    width={500}
    barWidth={23}
    spacing={10}
    data={barData}
    stepValue={120}
    yAxisThickness={0}
    xAxisThickness={0}
    isAnimated
    rulesColor={'#fff'}
    rotateLabel={true}
    xAxisTextNumberOfLines={1}
    xAxisLabelsVerticalShift={50}
    xAxisLabelTextStyle={{
      fontSize: 12,
      top: 30,
      left: 12,
      position: 'absolute',
    }}
    renderTooltip={(item, index) => {
      return (
        <View
          style={{
            marginBottom: 5,
            marginLeft: -6,
            backgroundColor: '#ffcefe',
            paddingHorizontal: 6,
            paddingVertical: 4,
            borderRadius: 4,
          }}>
          <Text>{item.value}</Text>
        </View>
      );
    }}
  />
</View>

from react-native-gifted-charts.

bekbull avatar bekbull commented on September 26, 2024

I have the same issue as you. Did you solve it?

<BarChart
    data={chartData}
    frontColor={'#37915B'}
    barWidth={13}
    width={250}
    isAnimated={true}
    onPress={onPressOfBar}
    stepHeight={37}
    barBorderTopLeftRadius={4}
    barBorderTopRightRadius={4}
    spacing={7}
    initialSpacing={1}
    endSpacing={1}
    xAxisLabelTextStyle={{
        fontSize: 10, color: '#000', transform: [{ rotate: '90deg' }, { translateY: 12 }], width: 45,
        textAlign: 'center'
    }}
    xAxisLabelsHeight={11}
    xAxisLabelsVerticalShift={10}
    animationDuration={900}
    // adjustToWidth={true}
/>

from react-native-gifted-charts.

Abhinandan-Kushwaha avatar Abhinandan-Kushwaha commented on September 26, 2024

Hi @bekbull
Can you share the complete code with data and a video of the output?

from react-native-gifted-charts.

coderBeat avatar coderBeat commented on September 26, 2024

@bekbull
Please, could you give an example how did you add a delay ?

from react-native-gifted-charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.