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

react-sigplot

Package Overview
Dependencies
Maintainers
4
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-sigplot

React wrapper for SigPlot

  • 0.1.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
63
increased by12.5%
Maintainers
4
Weekly downloads
 
Created
Source

react-sigplot

License Build Status PRs Welcome npm version codecov

SigPlot wrapper component for ReactJS.

Source: https://lgsinnovations.gitlab.com/axios/react-sigplot

Install: npm install --save react-sigplot

What is it?

Provides a component that wraps the SigPlot library.

Properties

<SigPlot />

PropertyTypeDefaultExplanation
heightnumber300Height of the div wrapping SigPlot
widthnumber300Width of the div wrapping SigPlot
displaystringinline-blockCSS display type for div wrapping SigPlot
stylesobjectundefinedany other CSS Styles as JS object
optionsobject{all: true, expand: true, autol: 100, autohide_panbars: true}SigPlot Plot options

<ArrayLayer />

PropertyTypeDefaultExplanation
dataarray(number)undefinedArray of values to plot
optionsobjectundefinedSigPlot data header
layerOptionsobjectundefinedSigPlot Layer options

<PipeLayer />

PropertyTypeDefaultExplanation
dataarray(number)undefinedArray of values to plot
optionsobjectundefinedSigPlot Layer options

<HrefLayer />

PropertyTypeDefaultExplanation
hrefstring''URL or path to a bluefile or MATLAB file
onloadfunctionnullFunction that will get executed when file is loaded
optionsobjectundefinedSigPlot Layer options

<WebsocketLayer />

PropertyTypeDefaultExplanation
wsurlstring''URL to the websocket server
overridesobjectundefinedSigPlot Layer overrides
optionsobjectundefinedSigPlot Layer options

Usage

Basic

/** Default plot an array three different ways
 * 1. As a standard array
 * 2. As a pipe
 * 3. As a file/url
 */
<div>
  <SigPlot options={{autol:1}}>
    <ArrayLayer data={this.state.rasterData}/>
  </SigPlot>
  <SigPlot>
    <PipeLayer options={{type: 2000, subsize: 1000}}
      data={this.state.rasterData}/>
  </SigPlot>
  <SigPlot>
    <HrefLayer
      href={this.state.href}/>
  </SigPlot>
</div>

Example Preview

If you run

$ npm run build
$ python -m SimpleHTTPServer 8888

and in a browser, navigate to http://0.0.0.0:8888, you should see the following

React Sigplot

FAQs

Package last updated on 01 Jun 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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc