
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
ng-intervals
Advanced tools
Show used intervals on axis
npm install ng-intervals
Import NgIntervalsComponent into your app's module.
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import {NgIntervalsComponent} from 'ng-ranges';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgIntervalsComponent
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
import {Component} from '@angular/core';
import {Intervals} from './intervals/intervals.component';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
public intervals: Intervals[] = [
{
lower: 0,
lowerClose: true,
upper: 0.3456,
upperClose: true,
color: '#f3df0b'
},
{
lower: 0.5,
lowerClose: true,
upper: 0.8234567342,
upperClose: true
}
];
}
<intervals [min]="0" [max]="1" [intervals]="intervals"></intervals>
example:
{
lower: 0, //lower value
lowerClose: true, //is left-closed
upper: 0.3456, // upper value
upperClose: true //is right-closed
}
{
childIntervalColor: 'yellow', // color of added intervals
mainIntervalColor: 'white' // color of main container
mainIntervalHeight: '20' // height of main container
}
<intervals [tooltip]="true"
[min]="0"
[max]="1"
[intervals]="intervals"
[styleOptions]="{childIntervalColor: 'yellow', mainIntervalColor: 'white', mainIntervalHeight: '20'}">
</intervals>
FAQs
Show used intervals on axis
We found that ng-intervals demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.