Jump to content

Component: Line Chart ( Charts): Difference between revisions

From Flowcode Help
No edit summary
No edit summary
Line 5: Line 5:
|-
|-
| width="20%" style="color:gray;" | Version
| width="20%" style="color:gray;" | Version
| 0.1
| 1.0
|-
|-
| width="20%" style="color:gray;" | Category
| width="20%" style="color:gray;" | Category
Line 15: Line 15:




==Component Source Code==
==Version information==


Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_WEBEXP_Chart_Line.fcsx FC_Comp_Source_WEBEXP_Chart_Line.fcsx]
Library Version, Component Version, Date, Author, Info
4, 1.0, 18-02-25, ST, Max series now 8, plus several new macros


Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_WEBEXP_Chart_Line.fcsx FC_Comp_Source_WEBEXP_Chart_Line.fcsx]


==Detailed description==
==Detailed description==
Line 70: Line 71:
| colspan="2" | Remove all data from the chart 
| colspan="2" | Remove all data from the 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''
|}
===ClearSeries===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ClearSeries'''
|-
| colspan="2" | Remove all data from a series in the chart 
|-
|-
| width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
| width="90%" | SeriesId
|-
| colspan="2" | The id of the 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 84: Line 104:
| colspan="2" | Redraw the chart 
| colspan="2" | Redraw the 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''
|}
===SetChartTitle===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetChartTitle'''
|-
| colspan="2" | Sets the title text for the chart 
|-
|-
| width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING
| width="90%" | Text
|-
| colspan="2" | The new title for the 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''
|}
===SetSeriesName===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetSeriesName'''
|-
| colspan="2" | Sets the name for a series 
|-
|-
| width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
| width="90%" | SeriesId
|-
| colspan="2" | The number of series to rename 
|-
| width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING
| width="90%" | SeriesName
|-
| colspan="2" | The new name for the series 
|-
|-
| 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 96: Line 159:
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetSeriesNames'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetSeriesNames'''
|-
|-
| colspan="2" | Sets the names for each series 
| colspan="2" | Sets the number of series and all of their names 
|-
|-
|-
|-
Line 108: Line 171:
|-
|-
| colspan="2" | Comma-separated list of series names 
| colspan="2" | Comma-separated list of series names 
|-
| 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''
|}
===SetSeriesVisible===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetSeriesVisible'''
|-
| colspan="2" | Shows or hides a series 
|-
|-
| width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
| width="90%" | SeriesId
|-
| colspan="2" | The number of the series to show or hide (1-8) 
|-
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
| width="90%" | Show
|-
| colspan="2" | True to show, false to hide 
|-
| 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''
|}
===SetXAxis===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetXAxis'''
|-
| colspan="2" | Sets the X axis name and bounds 
|-
|-
| width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING
| width="90%" | Text
|-
| colspan="2" | The new name for the axis (pass empty string to keep existing name) 
|-
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
| width="90%" | Autoscale
|-
| colspan="2" | Set true to autoscale the axis (ignores the Max and Min values) 
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | Min
|-
| colspan="2" | New minimum value for the axis (ignored if Autoscale is true) 
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | Max
|-
| colspan="2" | New maximum value for the axis (ignored if Autoscale is true) 
|-
| 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''
|}
===SetYAxis===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetYAxis'''
|-
| colspan="2" | Sets the Y axis name and bounds 
|-
|-
| width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING
| width="90%" | Text
|-
| colspan="2" | The new name for the axis (pass empty string to keep existing name) 
|-
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
| width="90%" | Autoscale
|-
| colspan="2" | Set true to autoscale the axis (ignores the Max and Min values) 
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | Min
|-
| colspan="2" | New minimum value for the axis (ignored if Autoscale is true) 
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | Max
|-
| colspan="2" | New maximum value for the axis (ignored if Autoscale is true) 
|-
|-
| 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 242: Line 397:
| colspan="2" |  
| colspan="2" |  
|}
|}
==Component Source Code==
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_WEBEXP_Chart_Line.fcsx FC_Comp_Source_WEBEXP_Chart_Line.fcsx]
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_WEBEXP_Chart_Line.fcsx FC_Comp_Source_WEBEXP_Chart_Line.fcsx]

Revision as of 08:59, 9 June 2025

Author
Version 1.0
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


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