kor TürkçeGitHub

Trend

Plots time series as areas, lines, bars or shaded targets.

kor/ui/TrendSource

When to use

  • Compare a measure over time with a plan or a second series.

Examples

A single line

Loading the example

<k:Trend label="Daily shipments" labels="{/days}" height="180">
	<k:Series name="Shipped" values="{/actual}"/>
</k:Trend>

Actual and target

Loading the example

<k:Trend label="Weekly output and plan" labels="{/weeks}" unit="units" height="220">
	<k:Series name="Actual" kind="bar" values="{/actual}"/>
	<k:Series name="Plan" kind="ghost" values="{/plan}"/>
</k:Trend>

Keyboard

← →
Move between chart positions after focusing it.

API

Properties

NameTypeDefaultDescription
labelsobjectHorizontal axis labels
heightint220Chart height in pixels
unitstringDisplayed unit of measure
labelstringAccessible name

Aggregations

NameTypeDescription
seriesSeries[]Data series, up to four

Series

A data series in a trend chart.

Properties

NameTypeDefaultDescription
namestringSeries name
valuesobjectArray of numeric values
kindstringlinearea, line, bar or ghost

Related

StatFlow