How to use the victory-chart/src.VictoryZoom.defaultProps function in victory-chart

To help you get started, we’ve selected a few victory-chart examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github FormidableLabs / victory-chart-native / lib / components / victory-zoom.js View on Github external
import { View, PanResponder, StyleSheet, Dimensions } from "react-native";
import { VictoryZoom } from "victory-chart/src";
import { VictoryClipContainer } from "victory-core-native";
import ZoomHelpers from "victory-chart/src/components/victory-zoom/helper-methods";

const styles = StyleSheet.create({
  responder: {
    flex: 1,
    alignItems: "center"
  }
});

export default class extends VictoryZoom {

  static defaultProps = {
    ...VictoryZoom.defaultProps,
    clipContainerComponent: 
  }

  constructor(props) {
    super(props);
    this.panResponder = this.getResponder();
  }

  // override default VictoryZoom events, we will handle touches
  // via a PanResponder instead. See getResponder() below
  getEvents() {
    return [];
  }

  // configure a PanResponder
  getResponder() {
github FormidableLabs / victory-native / lib / components / victory-zoom.js View on Github external
import { VictoryZoom } from "victory-chart/src";
import ZoomHelpers from "victory-chart/src/components/victory-zoom/helper-methods";

import VictoryClipContainer from "./victory-clip-container";

const styles = StyleSheet.create({
  responder: {
    flex: 1,
    alignItems: "center"
  }
});

export default class extends VictoryZoom {

  static defaultProps = {
    ...VictoryZoom.defaultProps,
    clipContainerComponent: 
  }

  constructor(props) {
    super(props);
    this.panResponder = this.getResponder();
  }

  // override default VictoryZoom events, we will handle touches
  // via a PanResponder instead. See getResponder() below
  getEvents() {
    return [];
  }

  // configure a PanResponder
  getResponder() {