Component: Base2dChart (Development): Difference between revisions
Appearance
No edit summary |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (8 intermediate revisions by 2 users not shown) | |||
| Line 76: | Line 76: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| Line 83: | Line 89: | ||
==Macro reference== | ==Macro reference== | ||
=== | ===AddCatData=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''AddCatData''' | ||
|- | |- | ||
| colspan="2" | Adds a data point | | colspan="2" | Adds a data point (y-value only) to the specified series. | ||
|- | |- | ||
|- | |- | ||
| Line 97: | Line 103: | ||
| colspan="2" | Which series to add to (1-8) | | colspan="2" | Which series to add to (1-8) | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9- | | width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING | ||
| width="90%" | | | width="90%" | Category | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT | ||
| width="90%" | | | width="90%" | Value | ||
|- | |- | ||
| colspan="2" | The value | | colspan="2" | The data point value | ||
|- | |- | ||
| 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 118: | Line 119: | ||
===AddData=== | ===AddData=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''AddData''' | ||
|- | |- | ||
| colspan="2" | Adds a data point (y-value only) to the specified series. | | colspan="2" | Adds a data point (y-value only) to the specified series. | ||
| Line 141: | Line 142: | ||
=== | ===AddDataCXYY1=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''AddDataCXYY1''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | Adds a data point to a bubble chart. | ||
|- | |- | ||
|- | |- | ||
| Line 153: | Line 154: | ||
| width="90%" | Series | | width="90%" | Series | ||
|- | |- | ||
| colspan="2" | Which series to | | colspan="2" | Which series to add to (1-8) | ||
|- | |||
| width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING | |||
| width="90%" | Category | |||
|- | |||
| colspan="2" | | |||
|- | |||
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT | |||
| width="90%" | Y | |||
|- | |||
| colspan="2" | Y coordinate | |||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9- | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT | ||
| width="90%" | X | | width="90%" | X | ||
|- | |- | ||
| colspan="2" | X | | colspan="2" | X coordinate | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9- | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT | ||
| width="90%" | | | width="90%" | Value | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | The value of the data point | ||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9- | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
| Line 171: | Line 182: | ||
===AddDataXY=== | ===AddDataXY=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''AddDataXY''' | ||
|- | |- | ||
| colspan="2" | Adds a data point (x and y values) to the specified series. | | colspan="2" | Adds a data point (x and y values) to the specified series. | ||
| Line 199: | Line 210: | ||
=== | ===AddDataXYY1=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''AddDataXYY1''' | ||
|- | |- | ||
| colspan="2" | Adds a data point ( | | colspan="2" | Adds a data point for a ternary chart (3 axes) to the specified series. | ||
|- | |- | ||
|- | |- | ||
| Line 213: | Line 224: | ||
| colspan="2" | Which series to add to (1-8) | | colspan="2" | Which series to add to (1-8) | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9- | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT | ||
| width="90%" | | | width="90%" | xValue | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | The value on the first axis | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT | ||
| width="90%" | | | width="90%" | yValue | ||
|- | |- | ||
| colspan="2" | The | | colspan="2" | The value on the second axis | ||
|- | |- | ||
| width="10%" align="center | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT | ||
| width="90% | | width="90%" | zValue | ||
|- | |- | ||
| colspan="2" | The value on the third axis | |||
| colspan="2" | | |||
|- | |- | ||
| 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 248: | Line 245: | ||
===ClearData=== | ===ClearData=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ClearData''' | ||
|- | |- | ||
| colspan="2" | Removes all datapoints from the chart. | | colspan="2" | Removes all datapoints from the chart. | ||
|- | |- | ||
|- | |- | ||
| Line 276: | Line 259: | ||
===GetData=== | ===GetData=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetData''' | ||
|- | |- | ||
| colspan="2" | Gets a data point from the specified series. | | colspan="2" | Gets a data point from the specified series. | ||
| Line 299: | Line 282: | ||
=== | ===GetDataXY=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetDataXY''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | Gets a data point from the specified XY reference | ||
|- | |- | ||
|- | |- | ||
| Line 311: | Line 294: | ||
| width="90%" | Series | | width="90%" | Series | ||
|- | |- | ||
| colspan="2" | Which series to | | colspan="2" | Which series to read from (1-8) | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9- | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | ||
| width="90%" | | | width="90%" | X | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | X location of the data (1 - 32767) | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9- | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | ||
| width="90%" | Y | | width="90%" | Y | ||
|- | |- | ||
| colspan="2" | Y | | colspan="2" | Y location of the data (1 - 255) | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT | ||
| width="90%" | | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |||
===RefreshChart=== | |||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" class="mtx-class-macrohead" | '''RefreshChart''' | |||
|- | |- | ||
| | | colspan="2" | Redraws the 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 | ||
| Line 338: | Line 325: | ||
===SetMode=== | |||
{| class="mtx-class-macrotable wikitable" | |||
|- | |||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | |||
| width="90%" class="mtx-class-macrohead" | '''SetMode''' | |||
|- | |||
| colspan="2" | Select the mode of operation | |||
|- | |||
|- | |||
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL | |||
| width="90%" | bUseArrays | |||
|- | |||
| 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="90%" style="border-top: 2px solid #000;" | ''Return'' | |||
|} | |||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Data | ||
|- | |- | ||
|- | |- | ||
| Line 372: | Line 376: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Appearance | ||
|- | |- | ||
|- | |- | ||
| Line 406: | Line 410: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | X-axis | ||
|- | |- | ||
|- | |- | ||
| Line 445: | Line 449: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Y-axis | ||
|- | |- | ||
|- | |- | ||
| Line 484: | Line 488: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Y-axis (secondary) | ||
|- | |- | ||
|- | |- | ||
| Line 523: | Line 527: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Data Labels | ||
|- | |- | ||
|- | |- | ||
| Line 562: | Line 566: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Legend | ||
|- | |- | ||
|- | |- | ||
| Line 581: | Line 585: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Series1 | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:37, 13 July 2026
| Author | Steve Tandy |
| Version | 1.1 |
| Category | Development |
Base2dChart component
A base component for creating 2d charts.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Base2dChart.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Base2dChart.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
AddCatData
| AddCatData | |
| Adds a data point (y-value only) to the specified series. | |
| Series | |
| Which series to add to (1-8) | |
| Category | |
| Value | |
| The data point value | |
| Return | |
AddData
| AddData | |
| Adds a data point (y-value only) to the specified series. | |
| Series | |
| Which series to add to (1-8) | |
| Value | |
| The data point value | |
| Return | |
AddDataCXYY1
AddDataXY
AddDataXYY1
ClearData
| ClearData | |
| Removes all datapoints from the chart. | |
| Return | |
GetData
| GetData | |
| Gets a data point from the specified series. | |
| Series | |
| Which series to add to (1-8) | |
| Index | |
| The data point index (1 - 32767) | |
| Return | |
GetDataXY
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 | |