npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@perguard/ng2-charts-boundary-lines

v0.1.0

Published

Chart and edit boundary lines for Angular based on [Chart.js](https://github.com/chartjs/Chart.js) (with [zoom plugin](https://github.com/chartjs/chartjs-plugin-zoom) and [dragdata plugin](https://github.com/chrispahm/chartjs-plugin-dragData) ) and

Downloads

3

Readme

ng2-charts-boundary-lines

Chart and edit boundary lines for Angular based on Chart.js (with zoom plugin and dragdata plugin ) and ng2-charts.

  • Charts measurements and boundary lines as time series
  • Filters time series
    • Filters x-values by a certain amount of maximum ticks
    • Aggregates data in between ticks according to different strategies (e.g., show maximum value in between ticks)
  • Change boundary lines
    • Drag data points of boundary lines to change them
    • Instantly emits changed values
    • Interpolates data between ticks linearly
  • Zoom and pan
    • Zoom and pan using your mouse or finger
    • Filters data by start and end time on the x-axis to only render necessary data

Usage

Installation

  1. You can install ng2-charts-boundary-lines using npm
npm install @perguard/ng2-charts-boundary-lines --save
  1. You need to install Chart.js, ng2-charts`, and some plugins in your application as they are peer dependencies
npm install chart.js --save
npm install chartjs-plugin-annotation --save
npm install chartjs-plugin-dragdata --save
npm install chartjs-plugin-zoom --save
npm install hammerjs --save
npm install help --save
npm install ng2-charts --save

Integration

import { Ng2ChartsBoundaryLinesModule } from 'ng2-charts-boundary-lines';

// In your app's module:
imports: [
   Ng2ChartsBoundaryLinesModule
]

Usage

<ng2-charts-boundary-lines
  [traces]="traces"              
  [(lowerBaseline)]="lowerBaseline"
  [(upperBaseline)]="upperBaseline"
  [maxDataPoints]="48"           
  [width]=1000                   
  [height]=800>                  
</ng2-charts-boundary-lines>

Input values

| Name | Type | Description | Required | Default | | --------------- | ------------------------------------------------------------ | ------------------ | -------- | --------- | | traces | ChartPoint[] | Actual measuements | Yes | undefined | | lowerBaseline | ChartPoint[] | Lower boundaries | Yes | undefined | | upperBaseline | ChartPoint[] | Upper boundaries | Yes | undefined | | maxDataPoints | number | Amount of ticks | No | 48 | | width | number | Width of chart | No | undefined | | height | number | Height of chart | No | undefined |

Output values

| Name | Type | Description | | --------------------- | ------------------------------------------------------------ | ---------------- | | lowerBaselineChange | ChartPoint[] | Adapted lower boundaries | | upperBaselineChange | ChartPoint[] | Adapted upper boundaries |

Troubleshooting

Please use GitHub Issues to report bugs and feature requests.

Thank you!

License

The MIT License (see the LICENSE file for the full text)