React-native-chart-kit: remove innerLines from stackedbarchart?

Created on 27 May 2020  路  2Comments  路  Source: indiespirit/react-native-chart-kit

Can we remove background grid lines from stacked bar chart?

Most helpful comment

I'm just adding the library to my project, but searching through the code the same thing, I found that you can put this:

chartConfig={{
    ...,
    propsForBackgroundLines: {
          strokeDasharray: "4",
          strokeWidth: 0, // If you put 0 in the value no line is displayed
          stroke: `rgba(0, 0, 0, 0)`,
        },
  }}

All 2 comments

I'm just adding the library to my project, but searching through the code the same thing, I found that you can put this:

chartConfig={{
    ...,
    propsForBackgroundLines: {
          strokeDasharray: "4",
          strokeWidth: 0, // If you put 0 in the value no line is displayed
          stroke: `rgba(0, 0, 0, 0)`,
        },
  }}
  <LineChart  withInnerLines={false} />
Was this page helpful?
0 / 5 - 0 ratings

Related issues

vedika96 picture vedika96  路  4Comments

ighormartins picture ighormartins  路  3Comments

bhoomika911 picture bhoomika911  路  4Comments

azui007 picture azui007  路  6Comments

NS-BOBBY-C picture NS-BOBBY-C  路  5Comments