Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

178
Views
Barchart design in react native chat kit

I am using BarChart from react native chat kit

and i want to achieve following design enter image description here

so far i have reached this but still not able to achieve fully.. enter image description here

kindly help me in the actual bar design

this is my code

              <BarChart
                data={chartData}
                width={400}
                height={160}
                chartConfig={chartConfig}
                showValuesOnTopOfBars={true}
                showBarTops={false}
                withHorizontalLabels={false}
               />

//config

const chartConfig = {
backgroundGradientFrom: '#ffffff',
fillShadowGradient: '#4084F4',
decimalPlaces: 0,
barPercentage: 0.5,
fillShadowGradientOpacity: 1,
backgroundGradientFromOpacity: 1,
backgroundGradientTo: '#ffffff',
spacingInner: 0.7,
backgroundGradientToOpacity: 1,
color: () => `#4084F4`,
labelColor: () => `black`,
withShadow: false,

propsForBackgroundLines: {
  strokeWidth: 0,
},

};

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

const chartConfig = {
  backgroundGradientFrom: 'white',
  backgroundGradientFromOpacity: 'white',
  backgroundGradientTo: 'white',
  color: () => 'red',
  // fillShadowGradient: 'green',
  fillShadowGradientOpacity: 1,
  labelColor: () => `rgba(85, 139, 229)`,
  barPercentage: 0.3,
  barRadius: 5,
  propsForBackgroundLines: {
    strokeWidth: 1,
    strokeDasharray: null,
    stroke: '#F0F0F0',
  },
 
};


 <BarChart
                data={AllTimeGraphDATA}
                // width={width}
                // height={height}
                width={width - 20}
                height={height * 0.24}
                chartConfig={chartConfig}
                showBarTops={false}
                yAxisLabel={''}
                fromZero={true}
                segments={2}

               
              />


Apply this code It will definitely work
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!