Line Graph

Typewidget
Dictionarywidget.linegraph
LibraryLine Graph
Associationscom.livecode.widget.linegraph
Summary

A configurable line graph widget.

The graph has labelled axes and allows multiple lines to be displayed.

  • Load comma-delimited data into the graph with the graphData property
  • Set the graphColors to control the color of each line in the graph
  • Call out a specific point on the graph by setting the hilitedCoordinates
RelatedProperty: graphData, graphColors, hilitedCoordinates
Description

A configurable line graph widget.

The graph has labelled axes and allows multiple lines to be displayed.

  • Load comma-delimited data into the graph with the graphData property
  • Set the graphColors to control the color of each line in the graph
  • Call out a specific point on the graph by setting the hilitedCoordinates
TypeNameSummarySyntax
propertygraphColors

The colors for drawing lines on the graph

set the graphColors of <widget> to <pColors>

get the graphColors of <widget>

- - -graphData

The data displayed by the graph.

set the graphData of <widget> to <pData>

get the graphData of <widget>

- - -graphXLines

Whether horizontal grid lines are displayed

set the graphXLines of <widget> to { true | false }

get the graphXLines of <widget>

- - -graphYLines

Whether vertical grid lines are displayed

set the graphYLines of <widget> to { true | false }

get the graphYLines of <widget>

- - -hilitedCoordinates

The coordinates of a highlighted point on the graph

set the hilitedCoordinates of <widget> to { <point> | empty }

get the hilitedCoordinates of <widget>

- - -hilitedCoordinatesColor

The color for drawing the highlighted point

set the hilitedCoordinatesColor of <widget> to <color>

get the hilitedCoordinatesColor of <widget>

- - -markerScale

A scale factor to apply to markers

set the markerScale of <widget> to <real>

get the markerScale of <widget>

- - -markerStyles

The marker styles for drawing vertices on the graph

set the markerStyles of <widget> to { <string> | empty }

get the markerStyles of <widget>

- - -showLines

Whether chart lines are displayed

set the showLines of <widget> to { true | false }

get the showLines of <widget>

widgetLine Graph

A configurable line graph widget.

The graph has labelled axes and allows multiple lines to be displayed.

  • Load comma-delimited data into the graph with the graphData property
  • Set the graphColors to control the color of each line in the graph
  • Call out a specific point on the graph by setting the hilitedCoordinates

set the showLines of <widget> to { true | false }

get the showLines of <widget>