CSStripChart QML Type

Display a strip chart. More...

Import Statement: import CSDataQuick.Components 1.0
Inherits:

BaseItem

Properties

Detailed Description

A strip chart acquires the data and updates the plot in fixed period. period and units together define the time span.

CSStripChart {
    model: ListModel {
        ListElement {
            channel: 'catest'
            color: 'red'
        }
        ListElement {
            channel: 'catest2'
            color: 'blue'
        }
    }
}

Property Documentation

legendVisible : bool

This property indicates whether the legend is visible.


model : var

This property holds the data list model.

The model can be ListModel or JSON object array. In any case, each element contains the following properties,

  • channel - the data source to monitor.
  • label - the descriptive text.
  • color - the color of the line for that channel,
  • loprSrc - the lower range source.
  • loprDefault - the default lower range.
  • hoprSrc - the upper range source.
  • hoprDefault - the default upper range.

Note: Only in the form of JSON object array, it can be used in Qt Quick Designer


period : int

This property holds the period of time between updates


title : string

This property holds the title of the plot, displayed on top.


units : int

This property holds the time axis units.

  • TimeUnit.MilliSecond
  • TimeUnit.Second
  • TimeUnit.Minute

xLabel : string

This property holds the lable of x axis, shown below the axis.


yLabel : string

This property holds the label of y axis, show next to the axis.