Jump to content

Component: Line Chart ( Charts): Difference between revisions

From Flowcode Help
m Text replacement - "style="background-color:#EAE1EA; color:#4B008D;"" to "class="mtx-class-propfolder""
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder""
 
Line 279: Line 279:
|-
|-
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" class="mtx-class-propfolder" | Chart
| width="90%" class="mtx-class-propfolder" | Chart
|-
|-
Line 298: Line 298:
| colspan="2" |  
| colspan="2" |  
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" class="mtx-class-propfolder" | X-axis
| width="90%" class="mtx-class-propfolder" | X-axis
|-
|-
Line 332: Line 332:
| colspan="2" |  
| colspan="2" |  
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" class="mtx-class-propfolder" | Y-axis
| width="90%" class="mtx-class-propfolder" | Y-axis
|-
|-
Line 366: Line 366:
| colspan="2" |  
| colspan="2" |  
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" class="mtx-class-propfolder" | Advanced
| width="90%" class="mtx-class-propfolder" | Advanced
|-
|-
Line 380: Line 380:
| colspan="2" |  
| colspan="2" |  
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" class="mtx-class-propfolder" | Series
| width="90%" class="mtx-class-propfolder" | Series
|-
|-

Latest revision as of 14:36, 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