Skip to content
New issue

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

Bar Chart Y axis Space on left issue #719

Open
Vidhun-Coderz opened this issue Jan 8, 2024 · 1 comment
Open

Bar Chart Y axis Space on left issue #719

Vidhun-Coderz opened this issue Jan 8, 2024 · 1 comment

Comments

@Vidhun-Coderz
Copy link

Vidhun-Coderz commented Jan 8, 2024

It occupies some space on the left side, but I'm not sure why (see image).Please offer a fix or workaround for this.

Screenshot (82)

`
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
}}

        />`
@khuznain
Copy link

any update one this please ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants