Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static defaultProps = {
data: [
{ x: "A", y: 1 },
{ x: "B", y: 2 },
{ x: "C", y: 3 },
{ x: "D", y: 1 },
{ x: "E", y: 2 }
],
standalone: true,
dataComponent: ,
labelComponent: ,
containerComponent: ,
groupComponent:
startAngle: PropTypes.number
};
static defaultProps = {
containerComponent: ,
defaultAxes: {
independent: ,
dependent:
},
defaultPolarAxes: {
independent: ,
dependent:
},
groupComponent:
groupComponent:
import React, { PropTypes } from "react";
import { partialRight } from "lodash";
import {
PropTypes as CustomPropTypes, Helpers, VictoryTransition, VictoryLabel, addEvents,
VictoryContainer, VictoryTheme, DefaultTransitions, Point, Data, Domain
} from "victory-core";
import ScatterHelpers from "./helper-methods";
const fallbackProps = {
width: 450,
height: 300,
padding: 50,
size: 3,
symbol: "circle",
theme: VictoryTheme.grayscale
};
const animationWhitelist = [
"data", "domain", "height", "maxBubbleSize", "padding", "samples", "size", "style", "width"
];
class VictoryScatter extends React.Component {
static displayName = "VictoryScatter";
static role = "scatter";
static defaultTransitions = DefaultTransitions.discreteTransitions();
static propTypes = {
animate: PropTypes.object,
bubbleProperty: PropTypes.string,
categories: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.string),
{ name: "B3", size: 5 }
]
},
dataComponent: ,
displayCore: false,
groupComponent:
import React, { PropTypes } from "react";
import { assign, partialRight } from "lodash";
import {
PropTypes as CustomPropTypes, Helpers, VictoryTransition, VictoryLabel,
VictoryContainer, VictoryTheme, Line, TextSize, addEvents
} from "victory-core";
import AxisHelpers from "./helper-methods";
import Axis from "../../helpers/axis";
const fallbackProps = {
width: 450,
height: 300,
padding: 50,
theme: VictoryTheme.grayscale
};
const animationWhitelist = [
"style", "domain", "range", "tickCount", "tickValues",
"offsetX", "offsetY", "padding", "width", "height"
];
class VictoryAxis extends React.Component {
static displayName = "VictoryAxis";
static role = "axis";
static defaultTransitions = {
onExit: {
duration: 500
},
PropTypes.func,
CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]),
PropTypes.string,
PropTypes.arrayOf(PropTypes.string)
])
};
static defaultProps = {
samples: 50,
scale: "linear",
standalone: true,
dataComponent: ,
labelComponent: ,
containerComponent: ,
groupComponent:
import React, { PropTypes } from "react";
import { partialRight } from "lodash";
import {
PropTypes as CustomPropTypes, Helpers, VictoryTransition, VictoryTooltip, addEvents,
VictoryContainer, VictoryTheme, DefaultTransitions, Voronoi, Data, Domain, Log
} from "victory-core";
import TooltipHelpers from "./helper-methods";
const fallbackProps = {
width: 450,
height: 300,
padding: 50,
theme: VictoryTheme.grayscale
};
const animationWhitelist = [
"data", "domain", "height", "padding", "samples", "size", "style", "width"
];
class VictoryVoronoiTooltip extends React.Component {
static displayName = "VictoryVoronoiTooltip";
static role = "tooltip";
static defaultTransitions = DefaultTransitions.discreteTransitions();
static propTypes = {
animate: PropTypes.object,
categories: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.string),
PropTypes.shape({
CustomPropTypes.greaterThanZero
]),
tickFormat: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.homogeneousArray]),
tickLabelComponent: PropTypes.element,
tickValues: CustomPropTypes.homogeneousArray
};
static defaultProps = {
axisComponent: ,
axisLabelComponent: ,
tickLabelComponent: ,
tickComponent: ,
gridComponent: ,
scale: "linear",
standalone: true,
theme: VictoryTheme.grayscale,
containerComponent: ,
groupComponent: