Description

The series time directive shows a time series on a chart, in order to use this you must set type to ‘time’ on the chart display tag. For detail on how to change the color and background color see the demo below, for more detail on what you can change and set using CSS see here.

Usage

as element:
<series:time
       response="{object}"
       platform="{string}"
       name="{string}"
       value-field="{string|expression}"
       label-field="{string|expression}"
       [title="{string|expression}"]
       [show-marker="{string}"]
       [type="{string}"]
       [range-selector="{boolean}"]
       [navigator="{boolean}"]
       [query="{object}"]
       [measure="{string}"]
       [sort="{boolean}"]
       [number-to-show="{Number}"]
       [selected-by-default="{boolean}"]>
</series:time>

Directive info

  • This directive creates new scope.

Parameters

ParamTypeDetails
responseobjectA response object (please include either a response or a platform not both!).
platformstringThe name of the platform to get the data from (please include either a response or a platform not both!).
namestringName of facet. (Use either name or value-field and label-field not both!)
value-fieldstring]link:[expressionField from the result containing the count. (Use either name or value-field and label-field not both!)
label-fieldstring]link:[expressionField from the result containing the label. (Use either name or value-field and label-field not both!)
title (optional)string]link:[expressionThe title of the series that appears in the legend and tooltip.
show-marker (optional)stringWhether to show marker or not.
type (optional)stringType of chart to render.
range-selector (optional)booleanWhere the input boxes should be enabled (from and to) Default:true
navigator (optional)booleanWhether to enable the navigator beneth the chart. Default:true
query (optional)objectThe search query from which to build links.
measure (optional)stringWhat fact to use as an alternative to count as quantitative value for a filter.
sort (optional)booleanWhether the data should be sort by the directive. Defaults to true.
number-to-show (optional)NumberThe number of points to show on the graph. Applies only when using the platform attribute. (Default:25)
selected-by-default (optional)booleanWhether this series should be shown when the chart:display is using select-series=“true” mode. Default: true.