Hierarchy

Hierarchy

Constructors

  • Parameters

    Returns IgrSparkline

Properties

context: any

If using the new style context, re-declare this in your class to be the React.ContextType of your static contextType. Should be used with type annotation or static contextType.

static contextType = MyContext
// For TS pre-3.7:
context!: React.ContextType<typeof MyContext>
// For TS 3.7 and above:
declare context: React.ContextType<typeof MyContext>
props: Readonly<IIgrSparklineProps> & Readonly<{
    children?: ReactNode;
}>
refs: {
    [key: string]: ReactInstance;
}

Type declaration

  • [key: string]: ReactInstance
state: Readonly<{}>
contextType?: Context<any>

If set, this.context will be set at runtime to the current value of the given Context.

Usage:

type MyContext = number
const Ctx = React.createContext<MyContext>(0)

class Foo extends React.Component {
static contextType = Ctx
context!: React.ContextType<typeof Ctx>
render () {
return <>My context's value: {this.context}</>;
}
}

Accessors

  • get actualPixelScalingRatio(): number
  • Gets the actual scaling value used by the component to affect the pixel density of the control. A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control to appear blurry.

    Returns number

  • set actualPixelScalingRatio(v): void
  • Parameters

    • v: number

    Returns void

  • get brush(): string
  • Gets or sets the sparkline brush.

    Returns string

  • set brush(v): void
  • Parameters

    • v: string

    Returns void

  • get dataSource(): any
  • Returns any

  • set dataSource(value): void
  • Parameters

    • value: any

    Returns void

  • get displayNormalRangeInFront(): boolean
  • Gets or sets the position of the normal range on the sparkline.

    Returns boolean

  • set displayNormalRangeInFront(v): void
  • Parameters

    • v: boolean

    Returns void

  • get displayType(): SparklineDisplayType
  • Gets or sets the display type of the sparkline.

    Returns SparklineDisplayType

  • set displayType(v): void
  • Parameters

    Returns void

  • get firstMarkerBrush(): string
  • Gets or sets the first marker brush of the sparkline.

    Returns string

  • set firstMarkerBrush(v): void
  • Parameters

    • v: string

    Returns void

  • get firstMarkerSize(): number
  • Gets or sets the first marker size of the sparkline.

    Returns number

  • set firstMarkerSize(v): void
  • Parameters

    • v: number

    Returns void

  • get firstMarkerVisibility(): Visibility
  • Gets or sets the first marker visibility of the sparkline.

    Returns Visibility

  • set firstMarkerVisibility(v): void
  • Parameters

    • v: Visibility

    Returns void

  • get formatLabel(): ((arg1) => string)
  • Sets or gets a function which takes an object that produces a formatted label for displaying in the chart.

    Returns ((arg1) => string)

      • (arg1): string
      • Sets or gets a function which takes an object that produces a formatted label for displaying in the chart.

        Parameters

        • arg1: any

        Returns string

  • set formatLabel(v): void
  • Parameters

    • v: ((arg1) => string)
        • (arg1): string
        • Parameters

          • arg1: any

          Returns string

    Returns void

  • get height(): string
  • Returns string

  • set height(value): void
  • Parameters

    • value: string

    Returns void

  • get highMarkerBrush(): string
  • Gets or sets the high marker brush of the sparkline.

    Returns string

  • set highMarkerBrush(v): void
  • Parameters

    • v: string

    Returns void

  • get highMarkerSize(): number
  • Gets or sets the high marker size of the sparkline.

    Returns number

  • set highMarkerSize(v): void
  • Parameters

    • v: number

    Returns void

  • get highMarkerVisibility(): Visibility
  • Gets or sets the high marker visibility of the sparkline.

    Returns Visibility

  • set highMarkerVisibility(v): void
  • Parameters

    • v: Visibility

    Returns void

  • get horizontalAxisBrush(): string
  • Gets or sets the horizontal axis line brush of the sparkline.

    Returns string

  • set horizontalAxisBrush(v): void
  • Parameters

    • v: string

    Returns void

  • get horizontalAxisLabel(): any
  • The value or content to display on the horizontal axis. This can be set to a formatted string, such as "{0}", or it can be set to a DataTemplate.

    Returns any

  • set horizontalAxisLabel(v): void
  • Parameters

    • v: any

    Returns void

  • get horizontalAxisVisibility(): Visibility
  • Gets or sets the display state of the horizontal axis.

    Returns Visibility

  • set horizontalAxisVisibility(v): void
  • Parameters

    • v: Visibility

    Returns void

  • get horizontalLabelFormat(): string
  • Gets or sets the label composite format used when creating label values.

    Returns string

  • set horizontalLabelFormat(v): void
  • Parameters

    • v: string

    Returns void

  • get horizontalLabelFormatSpecifiers(): any[]
  • Gets or sets the format specifiers to use with the HorizontalLabelFormat string.

    Returns any[]

  • set horizontalLabelFormatSpecifiers(v): void
  • Parameters

    • v: any[]

    Returns void

  • get labelMemberPath(): string
  • String identifier of a column or property name to get labels from on each item in the data source. These labels will be retrieved from the first and last item, and displayed by the horizontal axis.

    Returns string

  • set labelMemberPath(v): void
  • Parameters

    • v: string

    Returns void

  • get lastMarkerBrush(): string
  • Gets or sets the last marker brush of the sparkline.

    Returns string

  • set lastMarkerBrush(v): void
  • Parameters

    • v: string

    Returns void

  • get lastMarkerSize(): number
  • Gets or sets the last marker size of the sparkline.

    Returns number

  • set lastMarkerSize(v): void
  • Parameters

    • v: number

    Returns void

  • get lastMarkerVisibility(): Visibility
  • Gets or sets the last marker visibility of the sparkline.

    Returns Visibility

  • set lastMarkerVisibility(v): void
  • Parameters

    • v: Visibility

    Returns void

  • get lineThickness(): number
  • Gets or sets the line thickness of the sparkline.

    Returns number

  • set lineThickness(v): void
  • Parameters

    • v: number

    Returns void

  • get lowMarkerBrush(): string
  • Gets or sets the low marker brush of the sparkline.

    Returns string

  • set lowMarkerBrush(v): void
  • Parameters

    • v: string

    Returns void

  • get lowMarkerSize(): number
  • Gets or sets the low marker size of the sparkline.

    Returns number

  • set lowMarkerSize(v): void
  • Parameters

    • v: number

    Returns void

  • get lowMarkerVisibility(): Visibility
  • Gets or sets the low marker visibility of the sparkline.

    Returns Visibility

  • set lowMarkerVisibility(v): void
  • Parameters

    • v: Visibility

    Returns void

  • get markerBrush(): string
  • Gets or sets the marker brush of the sparkline.

    Returns string

  • set markerBrush(v): void
  • Parameters

    • v: string

    Returns void

  • get markerSize(): number
  • Gets or sets the marker size of the sparkline.

    Returns number

  • set markerSize(v): void
  • Parameters

    • v: number

    Returns void

  • get markerVisibility(): Visibility
  • Gets or sets the marker visibility of the sparkline.

    Returns Visibility

  • set markerVisibility(v): void
  • Parameters

    • v: Visibility

    Returns void

  • get maximum(): number
  • Gets or sets the maximum value of the y axis.

    Returns number

  • set maximum(v): void
  • Parameters

    • v: number

    Returns void

  • get minimum(): number
  • Gets or sets the minimum value of the y axis.

    Returns number

  • set minimum(v): void
  • Parameters

    • v: number

    Returns void

  • get negativeBrush(): string
  • Gets or sets the negative brush of the sparkline.

    Returns string

  • set negativeBrush(v): void
  • Parameters

    • v: string

    Returns void

  • get negativeMarkerBrush(): string
  • Gets or sets the negative marker brush of the sparkline.

    Returns string

  • set negativeMarkerBrush(v): void
  • Parameters

    • v: string

    Returns void

  • get negativeMarkerSize(): number
  • Gets or sets the negative marker size of the sparkline.

    Returns number

  • set negativeMarkerSize(v): void
  • Parameters

    • v: number

    Returns void

  • get negativeMarkerVisibility(): Visibility
  • Gets or sets the negative marker visibility of the sparkline.

    Returns Visibility

  • set negativeMarkerVisibility(v): void
  • Parameters

    • v: Visibility

    Returns void

  • get normalRangeFill(): string
  • Gets or sets the normal range brush of the sparkline.

    Returns string

  • set normalRangeFill(v): void
  • Parameters

    • v: string

    Returns void

  • get normalRangeMaximum(): number
  • Gets or sets the maximum value of the normal range.

    Returns number

  • set normalRangeMaximum(v): void
  • Parameters

    • v: number

    Returns void

  • get normalRangeMinimum(): number
  • Gets or sets the minimum value of the normal range.

    Returns number

  • set normalRangeMinimum(v): void
  • Parameters

    • v: number

    Returns void

  • get normalRangeVisibility(): Visibility
  • Gets or sets the normal range visibility of the sparkline.

    Returns Visibility

  • set normalRangeVisibility(v): void
  • Parameters

    • v: Visibility

    Returns void

  • get pixelScalingRatio(): number
  • Gets or sets the scaling value used to affect the pixel density of the control. A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control to appear blurry.

    Returns number

  • set pixelScalingRatio(v): void
  • Parameters

    • v: number

    Returns void

  • get tooltipTemplate(): FunctionComponent<IChartTooltipProps> | Component<IChartTooltipProps, {}, any>
  • Returns FunctionComponent<IChartTooltipProps> | Component<IChartTooltipProps, {}, any>

  • set tooltipTemplate(value): void
  • Parameters

    • value: FunctionComponent<IChartTooltipProps> | Component<IChartTooltipProps, {}, any>

    Returns void

  • get trendLineBrush(): string
  • Gets or sets the trendline brush of the sparkline.

    Returns string

  • set trendLineBrush(v): void
  • Parameters

    • v: string

    Returns void

  • get trendLinePeriod(): number
  • Gets or sets the trendline period used by the sparkline.

    Returns number

  • set trendLinePeriod(v): void
  • Parameters

    • v: number

    Returns void

  • get trendLineThickness(): number
  • Gets or sets the thickness of the sparkline's trendline.

    Returns number

  • set trendLineThickness(v): void
  • Parameters

    • v: number

    Returns void

  • get trendLineType(): TrendLineType
  • Gets or sets the type of trendline used by the sparkline.

    Returns TrendLineType

  • set trendLineType(v): void
  • Parameters

    • v: TrendLineType

    Returns void

  • get unknownValuePlotting(): UnknownValuePlotting
  • Gets or sets the way null values are interpreted.

    Returns UnknownValuePlotting

  • set unknownValuePlotting(v): void
  • Parameters

    • v: UnknownValuePlotting

    Returns void

  • get valueMemberPath(): string
  • Gets or sets the string path to the value column.

    Returns string

  • set valueMemberPath(v): void
  • Parameters

    • v: string

    Returns void

  • get verticalAxisBrush(): string
  • Gets or sets the vertical axis line brush of the sparkline.

    Returns string

  • set verticalAxisBrush(v): void
  • Parameters

    • v: string

    Returns void

  • get verticalAxisLabel(): any
  • The value or content to display on the vertical axis. This can be set to a formatted string, such as "{0:n}", or it can be set to a DataTemplate.

    Returns any

  • set verticalAxisLabel(v): void
  • Parameters

    • v: any

    Returns void

  • get verticalAxisVisibility(): Visibility
  • Gets or sets the display state of the vertical axis.

    Returns Visibility

  • set verticalAxisVisibility(v): void
  • Parameters

    • v: Visibility

    Returns void

  • get verticalLabelFormat(): string
  • Gets or sets the label composite format used when creating label values.

    Returns string

  • set verticalLabelFormat(v): void
  • Parameters

    • v: string

    Returns void

  • get verticalLabelFormatSpecifiers(): any[]
  • Gets or sets the format specifiers to use with the VerticalLabelFormat string.

    Returns any[]

  • set verticalLabelFormatSpecifiers(v): void
  • Parameters

    • v: any[]

    Returns void

  • get width(): string
  • Returns string

  • set width(value): void
  • Parameters

    • value: string

    Returns void

Methods

  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

  • Returns void

  • Called immediately after updating occurs. Not called for the initial render.

    The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

    Parameters

    Returns void

  • Returns void

  • Returns void

  • Returns visuals as a serialized string.

    Returns string

  • Returns the sparkline visuals expressed as a SparklineVisualData object.

    Returns SparklineVisualData

  • Parameters

    • name: string

    Returns any

  • Parameters

    • Optional callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Runs before React applies the result of render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before render causes changes to it.

    Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.

    Parameters

    Returns any

  • Returns void

  • Used to manually notify the IgxSparklineComponent that the data source has reset or cleared its items. Invoking this method is only necessary if that datasource is not observable.

    Parameters

    • source_: any
      • The data source which was cleared or reset.

    Returns void

  • Parameters

    • source_: any
    • index: number
    • newItem: any

    Returns void

  • Parameters

    • source_: any
    • index: number
    • oldItem: any

    Returns void

  • Notify that the control has resized.

    Returns void

  • Parameters

    • source_: any
    • index: number
    • oldItem: any
    • newItem: any

    Returns void

  • Provides a container to the sparkline control.

    Parameters

    • container: any
      • The container.

    Returns void

  • Returns DetailedReactHTMLElement<{
        children: any[];
        className: string;
        ref: ((div) => void);
    }, HTMLDivElement>

  • Type parameters

    Type Parameters

    • K extends never

    Parameters

    • state: {} | ((prevState, props) => {} | Pick<{}, K>) | Pick<{}, K>
    • Optional callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Parameters

    • nextProps: any
    • nextState: any

    Returns boolean

  • Parameters

    • internal: any

    Returns IgrSparkline