How to use victory-area - 1 common examples

To help you get started, we’ve selected a few victory-area 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-native / lib / components / victory-area.js View on Github external
import React from "react";
import { Dimensions } from "react-native";
import { VictoryArea } from "victory-area/es";

import VictoryLabel from "./victory-label";
import VictoryContainer from "./victory-container";
import VictoryClipContainer from "./victory-clip-container";
import Area from "./victory-primitives/area";

export default class extends VictoryArea {
  static defaultProps = Object.assign({}, VictoryArea.defaultProps, {
    dataComponent: <area>,
    labelComponent: ,
    containerComponent: ,
    groupComponent: ,
    width: Dimensions.get("window").width
  });
}

victory-area

Area Component for Victory

MIT
Latest version published 12 days ago

Package Health Score

98 / 100
Full package analysis

Popular victory-area functions