Jump to content

Component: Line Chart ( Charts): Difference between revisions

From Flowcode Help
No edit summary
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable""
Line 37: Line 37:


===AddPoint===
===AddPoint===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| 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]]
Line 66: Line 66:


===ClearData===
===ClearData===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| 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]]
Line 80: Line 80:


===ClearSeries===
===ClearSeries===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| 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]]
Line 99: Line 99:


===Redraw===
===Redraw===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| 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]]
Line 113: Line 113:


===SetChartTitle===
===SetChartTitle===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| 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]]
Line 132: Line 132:


===SetSeriesName===
===SetSeriesName===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| 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]]
Line 156: Line 156:


===SetSeriesNames===
===SetSeriesNames===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| 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]]
Line 180: Line 180:


===SetSeriesVisible===
===SetSeriesVisible===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| 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]]
Line 204: Line 204:


===SetXAxis===
===SetXAxis===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| 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]]
Line 238: Line 238:


===SetYAxis===
===SetYAxis===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| 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]]
Line 273: Line 273:
==Property reference==
==Property reference==


{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]

Revision as of 14:15, 13 July 2026

Author
Version 1.2
Category Charts


Line Chart component

Version information

Library Version, Component Version, Date, Author, Info
4, 1.0, 18-02-25, ST, Max series now 8, plus several new macros
5, 1.1, 27-01-26, ST, Charts and Gauges now consolidated into single load function
6, 1.2, 13-02-26, ST, Added Ev_Initialising to correctly set properties when loading


Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Macro reference

AddPoint

AddPoint
Add to the chart 
- FLOAT x
X value to plot 
- FLOAT y
Y value to plot 
- BYTE index
Series index (1-8) 
- VOID Return


ClearData

ClearData
Remove all data from the chart 
- VOID Return


ClearSeries

ClearSeries
Remove all data from a series in the chart 
- LONG SeriesId
The id of the series (1 - 8) 
- VOID Return


Redraw

Redraw
Redraw the chart 
- VOID Return


SetChartTitle

SetChartTitle
Sets the title text for the chart 
- STRING Text
The new title for the chart 
- VOID Return


SetSeriesName

SetSeriesName
Sets the name for a series 
- LONG SeriesId
The number of series to rename 
- STRING SeriesName
The new name for the series 
- VOID Return


SetSeriesNames

SetSeriesNames
Sets the number of series and all of their names 
- BYTE SeriesCount
The number of series to plot (1-8) 
- STRING SeriesNames
Comma-separated list of series names 
- VOID Return


SetSeriesVisible

SetSeriesVisible
Shows or hides a series 
- LONG SeriesId
The number of the series to show or hide (1-8) 
- BOOL Show
True to show, false to hide 
- VOID Return


SetXAxis

SetXAxis
Sets the X axis name and bounds 
- STRING Text
The new name for the axis (pass empty string to keep existing name) 
- BOOL Autoscale
Set true to autoscale the axis (ignores the Max and Min values) 
- FLOAT Min
New minimum value for the axis (ignored if Autoscale is true) 
- FLOAT Max
New maximum value for the axis (ignored if Autoscale is true) 
- VOID Return


SetYAxis

SetYAxis
Sets the Y axis name and bounds 
- STRING Text
The new name for the axis (pass empty string to keep existing name) 
- BOOL Autoscale
Set true to autoscale the axis (ignores the Max and Min values) 
- FLOAT Min
New minimum value for the axis (ignored if Autoscale is true) 
- FLOAT Max
New maximum value for the axis (ignored if Autoscale is true) 
- VOID Return


Property reference

Properties
Chart
Title
Chart title 
Legend
 
Style
 
X-axis
Name
 
Auto-scale
 
Start
 
End
 
Logarithmic
 
Scalable
 
Y-axis
Name
 
Auto-scale
 
Start
 
End
 
Logarithmic
 
Scalable
 
Advanced
Custom Attributes
 
Custom Options
 
Series
Series Count
 
Series 1
 
Series 2
 

Component Source Code

Please click here to download the component source project: FC_Comp_Source_WEBEXP_Chart_Line.fcsx

Please click here to view the component source code (Beta): FC_Comp_Source_WEBEXP_Chart_Line.fcsx