Jump to content

Component: XY Chart (Charts): Difference between revisions

From Flowcode Help
No edit summary
No edit summary
Line 71: Line 71:


{{Fcfile|Logging_Example.fcsx|Logging Example}}
{{Fcfile|Logging_Example.fcsx|Logging Example}}




Line 154: Line 156:
| width="90%" style="border-top: 2px solid #000;" | ''Return''
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
|}





Revision as of 12:18, 3 February 2023

Author Steve Tandy
Version 1.1
Category Charts


XY Chart component

A 2d XY scatter chart component.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_temp/ChartXY.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_temp/ChartXY.fcfx

Detailed description

No detailed description exists yet for this component

Examples

A basic App Developer example using two circular knobs to simulate data e.g., temperature. Both xy chart and Console, log the data.

Logging Example





Macro reference

AddPoint

AddPoint
Add an XY point to the selected data series. 
- FLOAT X
The X coordinate of the data point 
- FLOAT Y
The Y coordinate of the data point 
- BYTE Index
The data series (1-8) 
- VOID Return


Clear

Clear
Resets the XY chart and removes all data points. 
- VOID Return


RefreshChart

RefreshChart
Redraws the chart. 
- VOID Return


SetMode

SetMode
Select the mode of operation 
- BOOL bUseArrays
True if data points are added to a hidden buffer; False if data is drawn directly onto chart. 
- VOID Return


Property reference

Properties
Appearance
Style
 
Title
 
X-axis
Name
 
Show Grid
 
Auto-scale
 
Start
 
End
 
Logarithmic
 
Scalable
 
Y-axis
Name
 
Show Grid
 
Auto-scale
 
Start
 
End
 
Logarithmic
 
Scalable
 
Y-axis (secondary)
Name
 
Show Grid
 
Auto-scale
 
Start
 
End
 
Logarithmic
 
Scalable
 
Legend
Position
 
Draw Border
 
Select Series
 
Series1
Series Name
 
Visible
 
Secondary Axis
 
Line Style
 
Line Type
 
Line Width
 
Shadow
 
Show Marker
 
Marker Shape
 
Marker Size