Comments (8)
i understand what you mean.
we'll try implement individual column gap until next release.
thanks for using our charts. :)
from react-native-pure-chart.
Thankyou. Ideally if you can implement a way to pass a colour prop to individual bar charts (not a multiSeries) that would be awesome
from react-native-pure-chart.
Thank you for using react native pure chart.
we can only one color by one series.
if you want to individual color by data, you should split data by multi series.
from react-native-pure-chart.
Thankyou @kingwang09 for such a quick response. I've tried that, but then the width of the bars get really narrow. I only have 2 bars to render on the whole screen so I need them to be quite wide. i've set the defaultColumnWidth to 500 and it works, but is there a way to give a gap in the middle of the two bars?
from react-native-pure-chart.
can i show your applied screen?
from react-native-pure-chart.
if you want to give a gap in the middle of the two bars,
can you try using defaultColumnMargin? (not try using defaultColumnWidth)
from react-native-pure-chart.
<PureChart
height={height(55.2)}
defaultColumnWidth={width(50)}
data={sampleData}
defaultColumnMargin={40}
type="bar"
numberOfYAxisGuideLine={5}
backgroundColor="rgba(0,0,0,0.5)"
// highlightColor="yellow"
// primaryColor="blue"
/>
So this is what I want to do. 2 different bars with different colours. I've tried using defaultColumnMargin as you suggested already, but your default right margin for the 0 index is set to 0 in the source code. Ideally if there is a prop that can be set on individual charts it would be perfect.
from react-native-pure-chart.
How to set different colors for all bars in single series.https://www.google.com/url?sa=i&url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F50501714%2Frender-bar-chart-with-different-colors-in-react-native&psig=AOvVaw3MfiJGIYYyk5GobB1xP9zh&ust=1588427154810000&source=images&cd=vfe&ved=0CAIQjRxqFwoTCJi_89bmkukCFQAAAAAdAAAAABAI
from react-native-pure-chart.
Related Issues (20)
- No way to turn off the animation HOT 4
- LineChart (Multi Series) - Not showing info of single line series data. HOT 2
- Bar chart width doesn't change issue with react native 0.61.5 HOT 1
- LineChart (Multi-Series) - Unable to show X axis and Y axis Unit label
- Replace componentWillReceiveProps HOT 8
- Horizontal bar chart
- is it possible to add custom array of X axis values, its taking from series array in line chart?
- lines are not correct on RTL layout
- Undefined values other than 0
- Barcharts display x-axis all labels HOT 1
- Bar chart: How to show y values on top of the every bar HOT 1
- Selected box in Line chart does not work properly
- It changes wrong when it's Rtl
- package.json (5:5) Failed to resolve dependency 'react-native-pure-chart@*' (Network request failed) HOT 1
- Maintenance Status HOT 2
- Warning: componentWillReceiveProps has been renamed
- Hidden tooltip
- background color
- about the tooltip
- any idea about bar graph lable?
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-pure-chart.