Socket
Socket
Sign inDemoInstall

victory-voronoi-container

Package Overview
Dependencies
5
Maintainers
2
Versions
148
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-voronoi-container


Version published
Maintainers
2
Created

Package description

What is victory-voronoi-container?

The victory-voronoi-container package is a part of the Victory library, which provides a set of modular charting components for React. The victory-voronoi-container specifically allows for the creation of Voronoi overlays, which can be used to enhance data visualization by providing interactive regions that respond to user interactions such as mouse events.

What are victory-voronoi-container's main functionalities?

Basic Voronoi Container

This feature allows you to create a basic Voronoi container that displays labels when the user hovers over different regions of the chart. The labels show the x and y values of the data points.

const voronoiContainer = (
  <VictoryVoronoiContainer
    labels={({ datum }) => `x: ${datum.x}, y: ${datum.y}`}
  />
);

Custom Voronoi Container

This feature allows you to customize the Voronoi container by using a custom label component. In this example, a VictoryTooltip component is used to display the labels with a custom flyout style.

const customVoronoiContainer = (
  <VictoryVoronoiContainer
    labels={({ datum }) => `Custom label: ${datum.x}, ${datum.y}`}
    labelComponent={<VictoryTooltip flyoutStyle={{ fill: 'white' }} />}
  />
);

Responsive Voronoi Container

This feature enables the Voronoi container to be responsive, adjusting to different screen sizes and orientations. The labels still display the x and y values of the data points.

const responsiveVoronoiContainer = (
  <VictoryVoronoiContainer
    responsive={true}
    labels={({ datum }) => `x: ${datum.x}, y: ${datum.y}`}
  />
);

Other packages similar to victory-voronoi-container

Changelog

Source

32.2.2 (2019-05-03)

#1304 - renames private variables to reduce potential for conflict

Readme

Source

VictoryVoronoiContainer

victory-voronoi-container@^30.0.0 exports VictoryVoronoiContainer, voronoiContainerMixin and VoronoiHelpers

To view documentation for VictoryVoronoiContainer please see https://formidable.com/open-source/victory/docs/victory-voronoi-container

To suggest an addition or correction to this documentation please see https://github.com/FormidableLabs/victory-docs/blob/master/src/content/docs/victory-voronoi-container.md

Keywords

FAQs

Last updated on 04 May 2019

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc