← DataGrid API

Component · v2.7.1

NgbDataSparklineComponent

Inline sparkline renderer for cells or standalone layouts.

Import

import { NgbDataSparklineComponent } from '@angular-bootstrap/ngbootstrap';

Selector:ngb-data-sparkline

Declaration

class NgbDataSparklineComponent implements OnChanges

Inputs

values

values: number[]

Default:[]

width

width: number

Default:112

height

height: number

Default:28

strokeWidth

strokeWidth: number

Default:2

positiveColor

positiveColor: string

Default:'#58c46a'

negativeColor

negativeColor: string

Default:'#ef5350'

neutralColor

neutralColor: string

Default:'#9aa5b5'

color

color: string | null

Default:null

showEndDot

showEndDot: boolean

Default:true

endDotRadius

endDotRadius: number

Default:2.5

ariaLabel

ariaLabel: string

Default:'Sparkline chart'

Properties

series

Cached series used by getters so template bindings stay stable between checks.

series: number[]

Default:[]

points

get points(): NgbSparklinePoint[]

path

get path(): string

strokeColor

get strokeColor(): string

Referenced types

Source: src/datagrid/src/chart/data-sparkline.component.ts in the installed @angular-bootstrap/ngbootstrap package. Angular compiler metadata and private members are omitted.

This project is not affiliated with ng-bootstrap or ngx-bootstrap. Those projects focus mainly on Bootstrap components for Angular. ngbootstrap focuses on Angular UI for data-heavy apps, especially Data Grid, Angular-native Form Builder, drag and drop workflows, documentation examples, and performance-focused Angular patterns.