Getting Started with Victory
mainVictory is a collection of composable React components designed for building interactive data visualizations. It is highly opinionated to provide sensible defaults but is fully overridable to allow for deep customization. You can build complex charts by composing various components like VictoryChart, VictoryAxis, VictoryLine, and VictoryLegend together.
import { VictoryChart, VictoryLine, VictoryAxis, VictoryLegend } from 'victory';
function App() {
return (
<VictoryChart>
<VictoryLine data={[{ x: 1, y: 2 }, { x: 2, y: 3 }]} />
<VictoryAxis />
</VictoryChart>
);
}