Jump to content

Component: Line Chart ( Charts): Difference between revisions

From Flowcode Help
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable""
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead""
Line 39: Line 39:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddPoint'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddPoint'''
|-
|-
Line 68: Line 68:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ClearData'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ClearData'''
|-
|-
Line 82: Line 82:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ClearSeries'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ClearSeries'''
|-
|-
Line 101: Line 101:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Redraw'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Redraw'''
|-
|-
Line 115: Line 115:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetChartTitle'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetChartTitle'''
|-
|-
Line 134: Line 134:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetSeriesName'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetSeriesName'''
|-
|-
Line 158: Line 158:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetSeriesNames'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetSeriesNames'''
|-
|-
Line 182: Line 182:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetSeriesVisible'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetSeriesVisible'''
|-
|-
Line 206: Line 206:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetXAxis'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetXAxis'''
|-
|-
Line 240: Line 240:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetYAxis'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetYAxis'''
|-
|-

Revision as of 14:17, 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