Sparkline
Represents the Kendo UI for Vue Sparkline component.
Definition
Package:@progress/kendo-vue-charts
Properties Interface:SparklineProps
Syntax:
<Sparkline :type="'column'" :data-items="[10, 20, 15, 30, 25]" />
Properties
Overrides the default options of the Chart axes.
dataItems?
any
Sets the data for the default Sparkline series. The Sparkline ignores it when you set series.
dir?
string
Sets the dir HTML attribute of the Chart. Use rtl to render the Chart from right to left.
onAxislabelclick?
(event: AxisLabelClickEvent) => void
Fires when the user clicks an axis label.
Fires while the user drags the Chart with the mouse or with swipe gestures.
onDragend?
(event: DragEndEvent) => void
Fires when the user stops dragging the Chart.
onDragstart?
(event: DragStartEvent) => void
Fires when the user starts dragging the Chart.
onLegenditemclick?
(event: LegendItemClickEvent) => void
Fires when the user clicks a legend item (see example).
onLegenditemhover?
(event: LegendItemHoverEvent) => void
Fires when the user hovers over a legend item.
onNoteclick?
(event: NoteClickEvent) => void
Fires when the user clicks a note.
onNotehover?
(event: NoteHoverEvent) => void
Fires when the user hovers over a note.
onPlotareaclick?
(event: PlotAreaClickEvent) => void
Fires when the user clicks the plot area. The tap and contextmenu events also trigger the click event. To tell the original events apart, check the e.originalEvent.type field.
onPlotareahover?
(event: PlotAreaHoverEvent) => void
Fires when the user hovers over the plot area (see example).
onRender?
(event: RenderEvent) => void
Fires when the Chart is ready to render on the screen (see example). For example, you can use it to remove loading indicators. The Chart ignores any changes that you make to the options.
onSelect?
(event: SelectEvent) => void
Fires when the user changes the selection.
The range units are:
- Generic axis—Category index (0-based).
- Date axis—Date instance.
onSelectend?
(event: SelectEndEvent) => void
Fires when the user finishes changing the selection (see example).
The range units are:
- Generic axis—Category index (0-based).
- Date axis—Date instance.
onSelectstart?
(event: SelectStartEvent) => void
Fires when the user starts changing the axis selection.
The range units are:
- Generic axis—Category index (0-based).
- Date axis—Date instance.
onSeriesclick?
(event: SeriesClickEvent) => void
Fires when the user clicks the Chart series.
The tap and contextmenu events also trigger the click event. To tell the original events apart, check the e.originalEvent.type field.
onSerieshover?
(event: SeriesHoverEvent) => void
Fires when the user hovers over the Chart series.
Fires while the user zooms the Chart with the mouse wheel.
onZoomend?
(event: ZoomEndEvent) => void
Fires when the user stops zooming the Chart.
onZoomstart?
(event: ZoomStartEvent) => void
Fires when the user starts to zoom the Chart with the mouse wheel.
Chart configuration options.
Values provided through nested configuration components take precedence over matching values in this object.
Overrides the default options of the Chart panes.
pannable?
boolean | DragAction
Sets whether you can pan the Chart (see example).
renderAs?
string
Sets the preferred rendering engine (see example). If the browser does not support it, the Chart switches to the first available mode.
The supported values are:
"svg"—If available, renders the component as an inline.svgfile."canvas"—If available, renders the component as acanvaselement.
seriesColors?
string[]
Sets the default colors of the Chart series. When the Chart uses all colors, it starts again from the first color.
Overrides the default options of the Chart series.
transitions?
boolean
Sets whether the Chart plays animations when it shows the series. By default, the Chart plays animations.
true
type?
string
Sets the type of the default Sparkline series. The Sparkline ignores it when you set series.
Sets whether you can zoom the Chart (see example).