🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

iteractive_data_visualization

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iteractive_data_visualization

Interactive Data Visualization: Build a library for creating interactive and visually appealing charts and graphs using SVG or canvas. Include features like tooltips, zooming, panning, and animations to make data exploration more engaging.

1.0.1
latest
Source
npm
Version published
Weekly downloads
6
Maintainers
1
Weekly downloads
 
Created
Source

Interactive Data Visualization

This npm package provides a simple yet powerful tool for creating interactive data visualizations in JavaScript using D3.js.

Installation

You can install the package via npm:

npm install interactive-data-visualization


// Import the Visualization class
const Visualization = require('interactive-data-visualization');

// Sample data
const data = [
    { x: 50, y: 50, radius: 10, color: 'blue', label: 'Point 1' },
    { x: 100, y: 100, radius: 15, color: 'red', label: 'Point 2' },
    { x: 150, y: 150, radius: 20, color: 'green', label: 'Point 3' }
];

// Visualization options
const options = {
    container: '#visualization-container',
    width: 300,
    height: 300
};

// Instantiate the Visualization class
const viz = new Visualization(data, options);


API
new Visualization(data, options)
Creates a new instance of the Visualization class.

data: An array of objects representing data points. Each object should have x, y, radius, color, and label properties.
options: An object specifying configuration options for the visualization. It should contain container, width, and height properties.

License
This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

Interactive Data Visualization

FAQs

Package last updated on 05 May 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