Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

victory-native

Package Overview
Dependencies
Maintainers
18
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-native

[![Victory Native](https://oss.nearform.com/api/banner?badge=victory&text=victory+native&bg=9c2f1e)](https://commerce.nearform.com/open-source/victory-native/)

  • 41.9.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
116K
decreased by-0.53%
Maintainers
18
Weekly downloads
 
Created

What is victory-native?

Victory Native is a React Native library for creating data visualizations and charts. It provides a collection of modular charting components that can be combined to create complex visualizations. The library is designed to be highly customizable and easy to use, making it suitable for both simple and advanced data visualization needs in mobile applications.

What are victory-native's main functionalities?

Line Chart

The Line Chart feature allows you to create a simple line chart to visualize data trends over time. The code sample demonstrates how to use the VictoryLine component within a VictoryChart to plot a series of data points.


{
  "import": "{ VictoryChart, VictoryLine } from 'victory-native';",
  "component": "<VictoryChart>\n  <VictoryLine\n    data={[\n      { x: 1, y: 2 },\n      { x: 2, y: 3 },\n      { x: 3, y: 5 },\n      { x: 4, y: 4 },\n      { x: 5, y: 7 }\n    ]}\n  />\n</VictoryChart>"
}

Bar Chart

The Bar Chart feature allows you to create bar charts for categorical data comparison. The code sample shows how to use the VictoryBar component to display data as bars within a VictoryChart.


{
  "import": "{ VictoryChart, VictoryBar } from 'victory-native';",
  "component": "<VictoryChart>\n  <VictoryBar\n    data={[\n      { x: 'A', y: 2 },\n      { x: 'B', y: 3 },\n      { x: 'C', y: 5 },\n      { x: 'D', y: 4 },\n      { x: 'E', y: 7 }\n    ]}\n  />\n</VictoryChart>"
}

Pie Chart

The Pie Chart feature allows you to create pie charts to represent data proportions. The code sample demonstrates how to use the VictoryPie component to create a pie chart with different categories.


{
  "import": "{ VictoryPie } from 'victory-native';",
  "component": "<VictoryPie\n  data={[\n    { x: 'Cats', y: 35 },\n    { x: 'Dogs', y: 40 },\n    { x: 'Birds', y: 25 }\n  ]}\n/>"
}

Other packages similar to victory-native

FAQs

Package last updated on 05 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc