Comments (2)
Hi @AyoCodess
You can increase/decrease the width of the x-axis labels through the property width
inside the xAxisLabelTextStyle
prop.
You can also use the property width
inside individual labelTextStyle
objects of the data array.
from react-native-gifted-charts.
solution Increase spacing on data object, please improve docs. Thanks
const totalLogs: barDataItem[] = [
{
value: 40,
label: 'This Month',
spacing: 70,
labelWidth: 30,
labelTextStyle: { color: 'gray' },
frontColor: '#177AD5',
},
{
value: 100,
label: 'Past 3 months',
spacing: 80,
labelWidth: 30,
labelTextStyle: { color: 'gray' },
frontColor: '#177AD5',
},
{
value: 175,
label: 'Past 6 months',
spacing: 80,
labelWidth: 30,
labelTextStyle: { color: 'gray' },
frontColor: '#177AD5',
},
{
value: 230,
label: 'This Year',
spacing: 50,
labelWidth: 30,
labelTextStyle: { color: 'gray' },
frontColor: '#177AD5',
},
];
from react-native-gifted-charts.
Related Issues (20)
- Using DataSet Line Chart, sometimes the color of the line is not drawn or unseen HOT 6
- Cannot read property 'style' of undefined, js engine: hermes HOT 1
- Bars slightly below horizontal rule lines HOT 4
- Want to show pointer from onpress event HOT 1
- Horizontal bar tooltip not rotated
- When using LineChart with specifying both dataSet and pointerConfig, "Cannot read property 'value' of undefined" error occurs
- Multiline chart CustomDataPoint Overflow issue. HOT 3
- Programmatically trigger the `onPress` event on BarChart HOT 1
- yaxisLabel problem with negative values HOT 1
- having the X-axis labels all on the same line HOT 1
- Customization of the Y label text in LineChart HOT 1
- A way to set focused point via props HOT 1
- Make endSpacing behave like initialSpacing HOT 1
- yaxisLabel spacing with negative values
- Independent Value Ranges for Positive and Negative Regions to Prevent Distortions
- Render line chart in bar chart to have option to hide datapoint
- How to make grouped bar chart? HOT 1
- Can bar chart combined with stacked chart? HOT 3
- Type errors resulting in deployment failure
- scroll line disappearing only in android for line chart
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.