victory icon indicating copy to clipboard operation
victory copied to clipboard

Zooming on VictoryZoomContainer is slow - victory-native

Open St0wy opened this issue 2 years ago • 3 comments

The Problem

Zooming on the VictoryZoomContrainer reduces the framerate as low as 10 FPS. I don't have a lot of data, I'm just testing with a VictoryLine, but it also happens without anything on the chart.

Reproduction

Here is my code :

import { View } from "react-native";
import {
  VictoryLine,
  VictoryChart,
  VictoryTheme,
  VictoryZoomContainer,
} from "victory-native";

export default function App() {
  return (
    <View>
      <VictoryChart
        theme={VictoryTheme.material}
        containerComponent={<VictoryZoomContainer />}
      >
        <VictoryLine
          data={[
            { x: -1, y: -1 },
            { x: 1, y: 1 },
          ]}
        />
      </VictoryChart>
    </View>
  );
}

St0wy avatar Apr 05 '22 14:04 St0wy

@St0wy same. any workarounds?

vtarelkin avatar Jun 15 '22 12:06 vtarelkin

@vtarelkin In the end I disabled the zoom and used an other library (react-native-border-zoom-view).

St0wy avatar Jun 17 '22 12:06 St0wy

Hi everyone, we are transitioning all Native development to our new Victory Native XL library which is purpose built for supporting Native. Many of the design decisions we made in this version of Victory is not ideal for Native development.

acharyakavita avatar Jan 08 '24 15:01 acharyakavita

This issue is stale because it has been open for 90 days with no activity. If there is no activity in the next 7 days, the issue will be closed.

github-actions[bot] avatar Apr 08 '24 00:04 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.

github-actions[bot] avatar Apr 15 '24 02:04 github-actions[bot]