React-native-chart-kit: Extend line chart width without labels

Created on 13 Dec 2019  路  3Comments  路  Source: indiespirit/react-native-chart-kit

I'm using withHorizontalLabels=false

Is there a way to remove the extra space on the sides of the chart?
I want the chart to extend entirely from the left to the right.

E.G.
image

Most helpful comment

style={{
paddingRight:0
}}

All 3 comments

I don't think there is a way right now, curious what a PR for this would look like

@ighormartins You have to go into line-chart.js in the package and manually set the paddingTop and paddingRight to 0.

style={{
paddingRight:0
}}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

marinimau picture marinimau  路  6Comments

trungtin2202 picture trungtin2202  路  3Comments

Danjavia picture Danjavia  路  5Comments

carlojesuscponti picture carlojesuscponti  路  6Comments

LillyBrainy picture LillyBrainy  路  4Comments