Jump to content

GraphChart class: Difference between revisions

From LabVIEW Wiki
Started page
 
mNo edit summary
Line 1: Line 1:
{{VIServerClass|name=GraphChart|id=22|scope=basic|class_0=Generic|class_1=GObject|class_2=Control|class_3=GraphChart}}
{{VIServerClass|22}}


{{stub}}
{{stub}}

Revision as of 20:08, 1 September 2019

VI Server Class Information
Return to VI Server Class Hierarchy
Class Name GraphChart class
Class ID 22
Scope Basic Development Environment
Class Inheritance
Class Children


The GraphChart class is a class in the VI Server Class Hierarchy, (see also VI Server).

Properties

Show/Hide GraphChart Properties Table

Legend
R/WReadable/Writable Permissions
RTEAvailable in the Run-Time Engine
Basic Development Environment
VI Scripting
Private
Deprecated
GraphChart Properties Table
Property ID Short Name (English) Description R/W RTE
6341C10 ActXScl Gets or sets the active or current X-scale of a graph or chart.

This property is similar to the Scale option on the Scales page of the Properties dialog box.

R/W X
6341C11 ActYScl Gets or sets the active or current Y-scale of a graph or chart. Call this property before setting other properties on a specific scale.

This property is similar to the Y-Scale item on the shortcut menu of a chart or graph.

This property is similar to the Scale option on the Scales page of the Properties dialog box.

R/W X
6341C1A AutoscaleDelay Number of seconds that elapse between two successive autoscale operations when the scale has to shrink to fit the data. This delay has no effect on autoscale operations that happen in response to data that causes the scale to grow in range. R/W X
6341C1B Frame Color Gets or sets the frame color of the graph or chart.

The numeric value of this property corresponds to the color a color box constant displays for the same value. That color value is expressed as a hexadecimal number with the form RRGGBB. The first two digits control the red color value. The second two digits control the green color value. The last two digits control the blue color value.

R/W X
6341C15 Flavor R X
6341C0F ActPaletteTool Sets the tool that is currently selected on the graph palette. 0 is the selection cursor and 1 is the panning tool. 2-7 are the zoom tools: 2 is Zoom to Rectangle, 3 is X-zoom, 4 is Y-zoom, 5 is Zoom to Fit, 6 is Zoom Out about Point, and 7 is Zoom In about Point.

Note The Zoom to Fit tool zooms in or out to autoscale the graph or chart. Because the Zoom to Fit tool does not have a cursor, LabVIEW continues to display the cursor for the previous selected tool.

R/W X
6341C03 PaletteVis Shows the graph palette. R/W X
6341C19 Plot Bounds Gets and sets the plot area bounds for the Graph and Chart. If it is a stacked chart, this property returns the bounds of the first plot area. You cannot set the plot area bounds for a stacked chart.
Elements:
Name Description
Left The horizontal coordinate of the left edge of the plot area.
Top The vertical coordinate of the top edge of the plot area.
Right The horizontal coordinate of the right edge of the plot area.
Bottom The vertical coordinate of the bottom edge of the plot area.
R/W X
6341C05 PlotAreaColors Colors of the plotting area expressed in terms of (Foreground Color, Background Color) pair.

You can set the color of the front panel object by wiring a hexadecimal number with the form RRGGBB or by wiring the color box constant to the property.

Elements:
Name Description
Foreground Color Foreground color of the plotting area.
Background Color Background color of the plotting area.
R/W X
6341C07 BG Color Background color of the plotting area.

You can set the color of the front panel object by wiring a hexadecimal number with the form RRGGBB or by wiring the color box constant to the property.

This property is an element of the Plot Area:Colors property.

R/W X
6341C06 FG Color Foreground color of the plotting area.

You can set the color of the front panel object by wiring a hexadecimal number with the form RRGGBB or by wiring the color box constant to the property.

This property is an element of the Plot Area:Colors property.

R/W X
6341C16 PlotAreaPos R X
6341C17 PlotAreaLeft R X
6341C18 PlotAreaTop R X
6341C00 PlotAreaSize Size of the active plotting area in terms of width and height in pixels. R/W X
6341C02 Height Height of the active plotting area in pixels.

This property is an element of the Plot Area:Size property.

R/W X
6341C01 Width Width of the active plotting area in pixels.

This property is an element of the Plot Area:Size property.

R/W X
6341C12 ScaleLegendVis Shows the scale legend.

This property is similar to the Visible Items»Scale Legend item on the shortcut menu of a graph or chart.

This property is similar to the Show scale legend option on the Appearance page of the Properties dialog box.

R/W X
6341C04 TransposeArr Transpose data before plotting (switch X and Y).

This property is similar to the Transpose Array item on the shortcut menu of a graph or chart.

R/W X
6341C0B XScale Reference to the X-scale.

You can use this reference with the GraphScale properties.

This property is similar to the X Scale item on the shortcut menu of a graph or chart.

This property is similar to the Scale option on the Scales page of the Properties dialog box.

R X
6341C14 ScrollVis Displays the x-axis scroll bar for the graph or chart.

This property is similar to the Visible Items»X Scrollbar item on the shortcut menu of a graph or chart.

This property is similar to the Show x scroll bar option on the Appearance page of the Properties dialog box.

R/W X
6341C0C YScale Reference to the Y-scale.

You can use this reference with the GraphScale properties.

This property is similar to the Y Scale item on the shortcut menu of a graph or chart.

This property is similar to the Scale option on the Scales page of the Properties dialog box.

R X

Methods

Show/Hide GraphChart Methods Table

Legend
RTEAvailable in the Run-Time Engine
Basic Development Environment
VI Scripting
Private
Deprecated
GraphChart Methods Table
Method ID Short Name (English) Description RTE
6341802 ForceRedraw Forces LabVIEW to redraw the graph. X
6341800 Map Coords To XY Maps the owning pane coordinates to the XY location on a graph. If the scales are not specified then the active or current scales are used. X
6341801 Map XY To Coords Returns TRUE and maps the XY location on a graph to the owning pane coordinates. If you do not specify the scales, LabVIEW uses the active or current scales. This method is useful when you need to map graph coordinates to plot image coordinates to draw images inside the plot area of a graph.

This method adjusts only the left and top plot bounds to orient the plot around the origin of the owning pane.

X

Events

Show/Hide GraphChart Events Table

Legend
Basic Development Environment
VI Scripting
Private
Deprecated
GraphChart Events Table
Code Name Type
1073741904 Annotation Menu Selection Notify
2147483727 Annotation Menu Selection? Filter
1073741900 Autoscale Range Change Notify
1073741902 Cursor Menu Selection Notify
2147483725 Cursor Menu Selection? Filter
1073741862 Plot Attribute Change Notify
1073741861 Scale Range Change Notify

History

Version Change(s)
LabVIEW 2018 More info to come.

See Also