How to use victory-native - 7 common examples

To help you get started, we’ve selected a few victory-native 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 HenryQuan / WoWs-Info-Re / WoWsInfo / src / page / player / Graph.js View on Github external
const { container } = styles;
    const { tier, avgTier, nation, type } = this.state;
    const themeColour = TintColour()[500];
    return (
      
        
          
        
      
    )
  };
github krestaino / markets-react / components / Stock / Chart / index.js View on Github external
key={index}
              onPress={() => this.props.getStockChart(quote.symbol, range.range)}
              style={styles.rangesButton}
            >
              
            
          ))}
github mobius-network / wallet / src / components / shared / Chart / Chart.js View on Github external
const { history, asset } = this.props;
    const tokenHistory = history[asset];
    return (
      
        {tokenHistory ? (
          
             `${el.d.format('MM/DD')}`)}
            />
             `${t.toFixed(3)}`}
            />
github FormidableLabs / victory-native / demo / demo.js View on Github external
},
  {
    name: "Series 6",
    symbol: {
      type: "circle",
      fill: "orange"
    },
    labels: {
      fill: "blue"
    }
  }
];

const legendStyle = { border: { stroke: "black" } };

const VictoryZoomVoronoiContainer = createContainer("zoom", "voronoi");

export default class Demo extends Component {
  constructor(props) {
    super(props);
    this.state = {
      scrollEnabled: true,
      y: this.getYFunction(),
      style: this.getStyles(),
      transitionData: this.getTransitionData(),
      randomData: this.generateRandomData(),
      staticRandomData: this.generateRandomData(15),
      data: this.getData()
    };
  }

  componentDidMount() {
github FormidableLabs / victory-native / demo / src / views / create-container-view.js View on Github external
import React from "react";
import { ScrollView, Text } from "react-native";
import { VictoryChart, VictoryScatter, createContainer } from "victory-native";
import viewStyles from "../styles/view-styles";
import { generateRandomData } from "../data";

const VictoryZoomVoronoiContainer = createContainer("zoom", "voronoi");

export default function CreateContainersView() {
  const [scrollEnabled, setScrollEnabled] = React.useState(true);
  const randomData = React.useRef(generateRandomData());

  return (

victory-native

<div align="center"> <a href="https://formidable.com/open-source/" target="_blank"> <img alt="Victory — Formidable, We build the modern web" src="https://raw.githubusercontent.com/FormidableLabs/victory-native-xl/main/victory-hero.png" /> </a>

MIT
Latest version published 1 month ago

Package Health Score

90 / 100
Full package analysis