Component: XY Chart (Charts): Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_temp/ChartXY.fcfx FC_Comp_Source_temp/ChartXY.fcfx] | ||
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_temp/ChartXY.fcfx FC_Comp_Source_temp/ChartXY.fcfx] | ||
==Detailed description== | ==Detailed description== | ||
| Line 71: | Line 71: | ||
{{Fcfile|Logging_Example.fcsx|Logging Example}} | {{Fcfile|Logging_Example.fcsx|Logging Example}} | ||
| Line 78: | Line 80: | ||
==Macro reference== | ==Macro reference== | ||
=== | ===AddPoint=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddPoint''' | ||
|- | |||
| colspan="2" | Add an XY point to the selected data series. | |||
|- | |||
|- | |||
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT | |||
| width="90%" | X | |||
|- | |||
| colspan="2" | The X coordinate of the data point | |||
|- | |||
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT | |||
| width="90%" | Y | |||
|- | |||
| colspan="2" | The Y coordinate of the data point | |||
|- | |- | ||
| | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| width="90%" | Index | |||
|- | |- | ||
| colspan="2" | The data series (1-8) | |||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| Line 92: | Line 109: | ||
=== | ===Clear=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Clear''' | ||
|- | |- | ||
| colspan="2" | Resets the XY chart and removes all data points. | |||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| Line 125: | Line 137: | ||
=== | ===SetMode=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetMode''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | Select the mode of operation | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9- | | width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL | ||
| width="90%" | | | width="90%" | bUseArrays | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | True if data points are added to a hidden buffer; False if data is drawn directly onto chart. | ||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
Revision as of 11:59, 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.
Macro reference
AddPoint
| AddPoint | |
| Add an XY point to the selected data series. | |
| X | |
| The X coordinate of the data point | |
| Y | |
| The Y coordinate of the data point | |
| Index | |
| The data series (1-8) | |
| Return | |
Clear
| Clear | |
| Resets the XY chart and removes all data points. | |
| Return | |
RefreshChart
| RefreshChart | |
| Redraws the chart. | |
| Return | |
SetMode
| SetMode | |
| Select the mode of operation | |
| bUseArrays | |
| True if data points are added to a hidden buffer; False if data is drawn directly onto chart. | |
| Return | |