
Product
Introducing Custom Pull Request Alert Comment Headers
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
D3js based plotting for Angular. This module focuses on easy usage and responsiveness. It provides plots in a custom or default 4:3 aspect ratio, at a dynamic width of 100% parents width. On window resize the plots scale, and after resize (200ms) they redraw.
npm i ng-d3plot
#or
yarn add ng-d3plot
In your root (or whatever) module import the needed modules.
import {
HistogramModule,
LineChartModule,
PieModule
TimeSeriesModule
} from 'ng-d3plot';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
HistogramModule,
LineChartModule,
PieModule,
TimeSeriesModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
In the modules component templates use the tags as follows
<d3p-histogram [data]="data" [config]="config"></d3p-histogram>
<d3p-line-chart [data]="dataLine" [config]="configLine"></d3p-line-chart>
<d3p-pie [data]="data" [config]="config"></d3p-pie>
<d3p-time-series [data]="data" [config]="config"></d3p-time-series>
Where the @Input()
s are of type.
data | config | |
---|---|---|
Histogram | Array<number> | Config & { ticks?: number } |
Line Chart | Array<{x: number, y: number}> | Config |
Pie Chart | Array<{label: string, value: number}> | Config & { color?: string[] } |
Time Series | Array<{date: Date, value: number}> | Config |
the basic Config
interface looks like
interface Config {
xLabel?: string;
yLabel?: string;
title?: string;
aspectRatio?: number;
}
It is planned to add simple map (country: value).
FAQs
Response plots for Angular with D3
We found that ng-d3plot demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.