We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It occupies some space on the left side, but I'm not sure why (see image).Please offer a fix or workaround for this.
` const chartConfig = { backgroundGradientFrom: "#fff", backgroundGradientFromOpacity: 0, backgroundGradientTo: "#fff", backgroundGradientToOpacity: 1, color: () =>config?.primaryClr, strokeWidth: 0, // optional, default 3 barPercentage: .9, useShadowColorFromDataset: false, // optional barRadius:10, labelColor: (opacity = 1) => config?.primaryText, fillShadowGradientTo: config?.primaryClr, fillShadowGradientFrom:config?.primaryClr, fillShadowGradientOpacity: 1, fillShadowGradientFromOpacity:1, fillShadowGradientFromOffset:1, decimalPlaces: 0, // optional, defaults to 2dp // fillShadowGradientToOffset: propsForBackgroundLines: {
x1:50
}
}; <BarChart style={{backgroundColor:"#000",transform:[{translateX:-0}]}} data={ChartData} width={width - 40} height={225} yAxisSuffix="k" chartConfig={chartConfig} verticalLabelRotation={0} showBarTops={false} showValuesOnTopOfBars={true} withInnerLines={true} fromZero={true} propsForBackgroundLines={{ translateX:40 }}
/>`
The text was updated successfully, but these errors were encountered:
any update one this please ?
Sorry, something went wrong.
No branches or pull requests
It occupies some space on the left side, but I'm not sure why (see image).Please offer a fix or workaround for this.
`
const chartConfig = {
backgroundGradientFrom: "#fff",
backgroundGradientFromOpacity: 0,
backgroundGradientTo: "#fff",
backgroundGradientToOpacity: 1,
color: () =>config?.primaryClr,
strokeWidth: 0, // optional, default 3
barPercentage: .9,
useShadowColorFromDataset: false, // optional
barRadius:10,
labelColor: (opacity = 1) => config?.primaryText,
fillShadowGradientTo: config?.primaryClr,
fillShadowGradientFrom:config?.primaryClr,
fillShadowGradientOpacity: 1,
fillShadowGradientFromOpacity:1,
fillShadowGradientFromOffset:1,
decimalPlaces: 0, // optional, defaults to 2dp
// fillShadowGradientToOffset:
propsForBackgroundLines: {
}
};
<BarChart
style={{backgroundColor:"#000",transform:[{translateX:-0}]}}
data={ChartData}
width={width - 40}
height={225}
yAxisSuffix="k"
chartConfig={chartConfig}
verticalLabelRotation={0}
showBarTops={false}
showValuesOnTopOfBars={true}
withInnerLines={true}
fromZero={true}
propsForBackgroundLines={{
translateX:40
}}
The text was updated successfully, but these errors were encountered: