Comments (1)
Hi @htduongdl96 π
Your problem can be fixed using the labelTextStyle
property inside the data objects.
Here's an example-
const showChart = [
{value: 50, label: 'archieved', labelTextStyle: {textAlign: 'left'}},
{value: 450, label: 'discared', labelTextStyle: {textAlign: 'left'}},
{value: 1387, label: 'active', labelTextStyle: {textAlign: 'left'}},
];
return(
<BarChart
barWidth={50}
noOfSections={4}
spacing={80}
initialSpacing={50}
labelWidth={100}
barBorderRadius={4}
frontColor="lightgray"
data={showChart}
/>
);
And its output is-
Hope it helpsπ€
from react-native-gifted-charts.
Related Issues (20)
- Pointer Gets Disable While Press Out HOT 1
- Dynamic timestamps values on xAxis HOT 2
- How to add border radius to dognut chart item? HOT 6
- LineChart: set dash line for whole HOT 1
- Lock strip line on chart
- PieChartPro doesn't toggle onPress
- BarChart onPress for each bar HOT 1
- Incomplete Vertical Grid Lines in Bar Chart
- PieChart - spacing item HOT 1
- PointerConfig on Stack BarChart (Android) HOT 4
- Add axis name HOT 1
- PieChart - How do i control focus after press item below HOT 2
- Even if we scroll once the onScroll event is getting triggered multiple times HOT 1
- Change shift end of the chart from right border
- endSpacing increase my chart width HOT 3
- Barchart bar does not render at first, only if react component is changed ( EXPO ) HOT 3
- WHEN using dataSet property THEN some points/lines are not drawn HOT 1
- animateOnDataChange causes chart not to render
- [web] Unknown event handler property will be ignored
- When using dataSet, only one pointer is displayed on the line chart. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-gifted-charts.