MCPcopy Index your code
hub / github.com/FormidableLabs/victory

github.com/FormidableLabs/victory @v37.3.6 sqlite

repository ↗ · DeepWiki ↗ · release v37.3.6 ↗
1,572 symbols 5,040 edges 613 files 160 documented · 10% 4 cross-repo links
README

Victory — Formidable, We build the modern web

an ecosystem of composable React components for building interactive data visualizations.

weekly downloads current version build status

Maintenance Status

Victory

Contents

Getting started

  1. Add Victory to your project:
# npm
$ npm i --save victory
# or yarn
$ yarn add victory
  1. Add your first Victory component:
import React from "react";
import { render } from "react-dom";
import { VictoryPie } from "victory";

const PieChart = () => {
  return <VictoryPie />;
};

render(<PieChart />, document.getElementById("app"));
  1. VictoryPie component will be rendered, and you should see:

pie

Requirements

Projects using Victory should also depend on React. As of victory@34.0.0 Victory requires React version 16.3.0 or above

Victory Native

Victory Native shares most of its code with Victory, and has a nearly identical API! To learn more, check out the Victory Native package README.

Contributing

Please see the Contributing guide.

Maintenance Status

Active: Formidable is actively working on this project, and we expect to continue to work for the foreseeable future. Bug reports, feature requests and pull requests are welcome.

Extension points exported contracts — how you extend this code

VictoryComponentConfiguration (Interface)
(no doc) [15 implementers]
packages/victory-core/src/victory-util/add-events.tsx
VictoryCursorContainerProps (Interface)
(no doc)
packages/victory-cursor-container/src/victory-cursor-container.tsx
VictoryVoronoiContainerProps (Interface)
(no doc)
packages/victory-voronoi-container/src/victory-voronoi-container.tsx
VictoryLegendProps (Interface)
(no doc)
packages/victory-legend/src/victory-legend.tsx
FlyoutProps (Interface)
(no doc)
packages/victory-tooltip/src/flyout.tsx
CanvasBarProps (Interface)
(no doc)
packages/victory-canvas/src/canvas-bar.tsx
VictoryAreaProps (Interface)
(no doc)
packages/victory-area/src/victory-area.tsx
VictoryAxisProps (Interface)
(no doc)
packages/victory-axis/src/victory-axis.tsx

Core symbols most depended-on inside this repo

getData
called by 311
stories/utils/data.ts
map
called by 304
packages/victory-core/src/victory-util/immutable-types.d.ts
reduce
called by 109
packages/victory-core/src/victory-util/immutable-types.d.ts
forEach
called by 108
packages/victory-core/src/victory-util/immutable-types.d.ts
max
called by 96
packages/victory-core/src/victory-util/immutable-types.d.ts
min
called by 76
packages/victory-core/src/victory-util/immutable-types.d.ts
filter
called by 70
packages/victory-core/src/victory-util/immutable-types.d.ts
getMixedData
called by 66
stories/utils/data.ts

Shape

Function 1,004
Method 365
Interface 140
Class 62
Enum 1

Languages

TypeScript100%

Modules by API surface

packages/victory-core/src/victory-util/immutable-types.d.ts169 symbols
packages/victory-core/src/victory-util/add-events.tsx38 symbols
packages/victory-core/src/victory-util/events.ts34 symbols
packages/victory-core/src/victory-util/axis.tsx28 symbols
packages/victory-axis/src/helper-methods.tsx28 symbols
packages/victory-core/src/victory-util/helpers.ts27 symbols
packages/victory-pie/src/helper-methods.ts26 symbols
packages/victory-core/src/victory-util/domain.ts26 symbols
packages/victory-tooltip/src/victory-tooltip.tsx25 symbols
packages/victory-core/src/victory-util/data.ts25 symbols
packages/victory-core/src/victory-label/victory-label.tsx25 symbols
packages/victory-box-plot/src/helper-methods.tsx25 symbols

Dependencies from manifests, versioned

@algolia/client-search5.3.1 · 1×
@babel/cli7.23.9 · 1×
@babel/core7.23.9 · 1×
@babel/plugin-transform-export-namespace-from7.23.4 · 1×
@babel/plugin-transform-modules-commonjs7.23.3 · 1×
@babel/preset-env7.23.9 · 1×
@babel/preset-react7.23.3 · 1×
@babel/preset-typescript7.23.3 · 1×
@babel/runtime7.22.15 · 1×
@changesets/cli2.24.1 · 1×
@d3fc/d3fc-discontinuous-scale4.1.1 · 1×

For agents

$ claude mcp add victory \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact