Represents the Sparkline control.
<div id="sparkline"/>
<script>
var sparkline = new Sparkline();
sparkline.appendTo("#sparkline");
</script>
To configure Sparkline container area customization.
To configure Sparkline points border color and width.
To configure Sparkline container area customization.
SparklineDataLabelSettingsModel
To configure Sparkline dataLabel configuration.
Object[]
| DataManager
To configure sparkline data source.
Defaults to null
boolean
Enable or disable persisting component’s state between page reloads.
Defaults to false
boolean
Enable or disable rendering component in right to left direction.
Defaults to false
string
To configure sparkline series last x value point color.
Defaults to ”
string
To configure sparkline series fill.
Defaults to ‘#00bdae’
string
To apply internationalization for sparkline.
Defaults to null
string
To configure Sparkline height.
string
To configure sparkline series highest y value point color.
Defaults to ”
number
To configure sparkline line series width.
Defaults to ‘1’
string
Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
Defaults to ”
string
To configure sparkline series lowest y value point color.
Defaults to ”
To configure Sparkline marker configuration.
string
To configure sparkline series negative y value point color.
Defaults to ”
number
To configure sparkline line series opacity.
Defaults to ‘1’
To configure Sparkline container area customization.
string[]
To configure sparkline series color palette. It applicable to column and pie type series.
Defaults to []
Query
Specifies the query for filter the data.
Defaults to null
To configure Sparkline axis line customization.
To configure Sparkline series type.
Defaults to ‘None’
string
To configure sparkline series first x value point color.
Defaults to ”
To configure sparkline theme.
Defaults to ‘Material’
string
To configure sparkline winloss series tie y value point color.
Defaults to ”
To configure Sparkline tooltip settings.
To configure Sparkline series type.
Defaults to ‘Line’
boolean
To enable the separator.
Defaults to false
To configure sparkline series value type.
Defaults to ‘Numeric’
string
To configure Sparkline width.
string
To configure sparkline series xName.
Defaults to null
string
To configure sparkline series yName.
Defaults to null
Adds the handler to the given event listener.
Parameter | Type | Description |
---|---|---|
eventName | string |
A String that specifies the name of the event |
handler | Function |
Specifies the call to run when the event occurs. |
Returns void
Appends the control within the given HTML element
Parameter | Type | Description |
---|---|---|
selector (optional) | string | HTMLElement |
Target element where control needs to be appended |
Returns void
Adding unload event to persist data when enable persistence true
Returns void
When invoked, applies the pending property changes immediately to the component.
Returns void
Destroy the component.
Returns void
Removing unload event to persist data when enable persistence true
Returns void
Returns the persistence data for component
Returns any
Get component name.
Returns string
Returns the route element of the component
Returns HTMLElement
Handling unload event to persist data when enable persistence true
Returns void
Applies all the pending property changes and render the component again.
Returns void
Removes the handler from the given event listener.
Parameter | Type | Description |
---|---|---|
eventName | string |
A String that specifies the name of the event to remove |
handler | Function |
Specifies the function to remove |
Returns void
To render sparkline elements.
Returns void
Dynamically injects the required modules to the component.
Parameter | Type | Description |
---|---|---|
moduleList | Function[] |
? |
Returns void
EmitType<IAxisRenderingEventArgs>
Triggers before sparkline axis render.
EmitType<IDataLabelRenderingEventArgs>
Triggers before the sparkline datalabel render.
EmitType<ISparklineLoadEventArgs>
Triggers before sparkline render.
EmitType<ISparklineLoadedEventArgs>
Triggers after sparkline rendered.
EmitType<IMarkerRenderingEventArgs>
Triggers before the sparkline marker render.
EmitType<IPointRegionEventArgs>
Triggers while mouse click on the sparkline point region.
EmitType<IPointRegionEventArgs>
Triggers while mouse move on the sparkline point region.
EmitType<ISparklinePointEventArgs>
Triggers before sparkline points render.
EmitType<ISparklineResizeEventArgs>
Triggers on resizing the sparkline.
EmitType<ISeriesRenderingEventArgs>
Triggers before sparkline series render.
EmitType<ISparklineMouseEventArgs>
Triggers while mouse click on the sparkline container.
EmitType<ISparklineMouseEventArgs>
Triggers while mouse move on the sparkline container.
EmitType<ITooltipRenderingEventArgs>
Triggers before sparkline tooltip render.