ChartStyle Property

Measurement Studio User Interface

ChartStyle Property

Syntax

CWGraph.ChartStyle

Data Type

CWChartStyles

You can use the following constants with this data type:

  • cwChartScope–When the X values for new data reach the end of the display, the plot is cleared and the x axis updates according to its current range. For example, if the x-axis range is 0 to 100, it becomes 100 to 200. No old data is displayed.
  • cwChartStrip–When a trace reaches the edge of the plot area, the x axis and plot start to scroll from right to left. New data points are appended on the right side while old data scrolls off the left side of the graph.

Purpose

Specifies how chart methods update the display as new data is added to the plot.

Remarks

Setting this property affects only the display. It does not affect how much data is stored.

If data is charted to plots at different rates, the plot that is furthest in front, that is, the plot that has the greatest X values, determines when and how much the x axis is updated. If the data is in decreasing order, the plot with the smallest X value is used.

Use this property only with the CWGraph.ChartY or CWPlot.ChartY method, and only when autoscaling is not enabled for the x axis.

See Also

ChartY

CWPlot.ChartY

ChartLength

CWAxis.AutoScale