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

@nightingale-elements/nightingale-linegraph-track

Package Overview
Dependencies
Maintainers
0
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nightingale-elements/nightingale-linegraph-track

Nightingale Line Graph

  • 5.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
decreased by-86.67%
Maintainers
0
Weekly downloads
 
Created
Source

nightingale-linegraph-track

Published on NPM

Nightingale line graph track component is used to display multiple line graphs (either linear or d3 curves).

Usage

  • Include the componet in your HTML:

    <nightingale-linegraph-track
      id="track"
      width="600"
      length="5"
    ></nightingale-linegraph-track>
    
  • Set the data in the component:

    await customElements.whenDefined("nightingale-linegraph-track");
    const track = document.getElementById("track");
    if (track) {
      (track as any).data = tinyData;
    }
    

API Reference

Properties

data: Array

The data expects the following structure.

{
    name: String,
    range:[min, max],
    color?: Line color,
        (color will be assigned if not provided. Use "none" for no line color)
    fill?: Create area plot using given fill color (default "none"),
    lineCurve?: 'curveLinear'(default)|'curveBasis'|'curveCardinal'|'curveStep'|'curveNatural',
        (More curves - https://github.com/d3/d3-shape/blob/v2.0.0/README.md#curves)
    values: [
        {
            position: Number,
            value: Number
        }
    ]
}

Other attributes and parameters

This component inherits from NightingaleElement.

The component implements the following mixins: withManager, withZoom, withResizable, withMargin, withPosition, withDimensions, withHighlight

Keywords

FAQs

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