Navigator.series
configurationArray of series definitions.
Accepts the same options as the root series collection.
Omitting the array and specifying a single series is also acceptable.
navigator.series
Arraynavigator.series.aggregate
String|FunctionThe aggregate function to apply for date series.
This function is used when a category (an year, month, etc.) contains two or more points. The function return value is displayed instead of the individual points.
The supported values are:
- "avg" - the average of all values for the date period.
- "count" - the number of values for the date period.
- "max" - the highest value for the date period.
- "min" - the lowest value for the date period.
- "sum" - the sum of all values for the date period. Defaults to 0 if no data points are defined.
- "sumOrNull" - the sum of all values for the date period. Defaults to
nullif no data points are defined. - "first" - the first value
- function(values, series, dataItems, category) - user-defined aggregate function. Returns single value or data item.
- object - (compound aggregate) Applicable to "candlestick" and ohlc "series". Specifies the aggregate for each data item field.
aggregate: {
open: "max",
high: "max",
close: "min",
low: "max"
}
Default: "max"
navigator.series.axis
StringThe name of the value axis to use.
** Applicable to area, column, line, ohlc and candlestick series **
Default: "primary"
navigator.series.border
ObjectThe border of the points.
** Applicable to column, ohlc and candlestick series **
The data item field which contains the category name or date.
The points will be rendered in chronological order if the category is a date.
If specified, the dateField option is used as a default.
Default: "category"
The data field containing the close value.
** Available for candlestick and ohlc series only **
navigator.series.color
StringThe series base color. The supported values are:
- CSS color string, including hex and rgb
- function(point) - user-defined function that will be evaluated for each point. Returning
undefinedwill assume the default series color.
The data field containing the point color.
** Applicable for column, candlestick and ohlc series. **
The dash type of line chart.
The
dashTypeoption is taken into consideration only if the series.type option is set to "line".
The following dash types are supported:
- "dash" - a line consisting of dashes
- "dashDot" - a line consisting of a repeating pattern of dash-dot
- "dot" - a line consisting of dots
- "longDash" - a line consisting of a repeating pattern of long-dash
- "longDashDot" - a line consisting of a repeating pattern of long-dash-dot
- "longDashDotDot" - a line consisting of a repeating pattern of long-dash-dot-dot
- "solid" - a solid line
Default: "solid"
Array of data items. The data item type can be either a:
- Array of objects. Each point is bound to the specified series fields.
- Array of numbers. Available for area, column and line series.
- Array of arrays of numbers. Available for:
- OHLC and candlestick series (open, high, low, close)
Set the chart series data as array of objects
<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
series: [
{
type: "candlestick",
data: [{
open: 2,
high: 4,
low: 1,
close: 3
}]
}
],
categoryAxis: {
categories: [
new Date(2012, 1, 1)
]
}
});
</script>
Set the chart series data as array of arrays
<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
series: [
{
type: "candlestick",
openField: "Open",
highField: "High",
lowField: "Low",
closeField: "Close",
data:[{
"Date": "2016/01/01",
"Open": 41.62,
"High": 41.69,
"Low": 39.81,
"Close": 40.12,
"Volume": 2632000
}, {
"Date": "2016/03/01",
"Open": 40.62,
"High": 39.69,
"Low": 40.81,
"Close": 39.12,
"Volume": 2631986
}
]
}
],
categoryAxis: {
categories: [
new Date(2012, 1, 1)
]
}
});
</script>
The series color when the open value is greater than the close value.
** Available for candlestick series only **
The data field containing the color applied when the open value is greater than the close value.
** Available for candlestick series only **
navigator.series.field
StringThe data field containing the series value.
navigator.series.gap
NumberThe distance between category clusters.
** Applicable for column, candlestick and ohlc series. **
Default: 1.5
The data field containing the high value.
** Available for candlestick and ohlc series only **
Configures the appearance of highlighted points.
** Applicable to candlestick and ohlc series. **
navigator.series.labels
ObjectConfigures the series data labels.
navigator.series.line
String | ObjectLine options.
** Applicable to area, candlestick and ohlc series. **
The data field containing the low value.
** Available for candlestick and ohlc series **
navigator.series.markers
ObjectMarker options.
** Applicable for area and line series. **
The behavior for handling missing values. The supported values are:
- "gap" - the plot stops before the missing point and continues after it.
- "interpolate" - the value is interpolated from neighboring points.
- "zero" - the value is assumed to be zero.
The default value is "interpolate", except for "area" and stacked series which default to "zero".
The
missingValuesoption is supported when series.type is set to "area" and "line".
navigator.series.name
StringThe navigator series name.
navigator.series.opacity
NumberThe series opacity.
The data field containing the open value.
** Available for candlestick and ohlc series **
navigator.series.overlay
ObjectThe effects overlay.
navigator.series.spacing
NumberSpace between points as proportion of the point width.
Available for column, candlestick and ohlc series.
Default: 0.4
navigator.series.stack
Boolean|String|ObjectA boolean value indicating if the series should be stacked. A string value is interpreted as navigator.series.stack.group.
The
stackoptions is supported when navigator.series.type is set to "bar", "column", "line", "area", "verticalLine", "verticalArea", "radarLine", "radarArea" and "radarColumn".
Stack settings of the first series are applied to the rest of the series.
Default: false
navigator.series.style
StringThe supported values are:
- "normal" - The values will be connected with straight line.
- "step" - The values will be connected with a line with right angle.
The default value is "normal".
The
styleoption is supported when series.type is set to "area", "line".
Default: "normal"
navigator.series.tooltip
ObjectThe data point tooltip configuration options.
navigator.series.type
StringThe type of the series. Available types:
- candlestick, ohlc
- column
- bullet
- area
- line
navigator.series.width
NumberThe line width.
** Applicable for line series. **