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 OnChangesInputs
values
values: number[]Default:[]
width
width: numberDefault:112
height
height: numberDefault:28
strokeWidth
strokeWidth: numberDefault:2
positiveColor
positiveColor: stringDefault:'#58c46a'
negativeColor
negativeColor: stringDefault:'#ef5350'
neutralColor
neutralColor: stringDefault:'#9aa5b5'
color
color: string | nullDefault:null
showEndDot
showEndDot: booleanDefault:true
endDotRadius
endDotRadius: numberDefault:2.5
ariaLabel
ariaLabel: stringDefault:'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(): stringstrokeColor
get strokeColor(): string