wuxudong / react-native-charts-wrapper

a react native charts wrapper (support android & iOS)
2.44k stars 657 forks source link

Bar height does not match yAxis values #907

Open gitschup opened 1 year ago

gitschup commented 1 year ago

Expected Behavior

Bar height matches the yAxis values.

Actual Behavior

Bar heights seem to be quite arbitrary compared to actual expected values.

Screenshots

IMG_BA37050B5B18-1

Data and config

    {
      valueFormatter: ["2018", "2019", "2020", "2021"],
      values: [
        { x: 0, y: 20 },
        { x: 1, y: 250 },
        { x: 2, y: 130 },
        { x: 3, y: 1000 },
      ],
    },
  ],```

yAxis={{ left: { enabled: false, axisMinimum: 0, }, right: { enabled: true, position: "OUTSIDE_CHART", drawGridLines: true, gridLineWidth: 1, drawAxisLines: false, axisMinimum: 0, granularity: 0, granularityEnabled: true, textColor: processColor(colors.GREY), spaceTop: 0, axisMinimum: 0, labelCount: 5, labelCountForce: true, zeroLine: { enabled: false, }, }, }}



### Specifications

  - Version: 0.5.11
  - Platform: iOS, Android
wuxudong commented 1 year ago

I copy your setting to Example, and it looks fine ? Simulator Screen Shot - iPhone 14 Pro - 2022-10-31 at 21 26 36