Files
Basalt/docs/objects/Graph.md
Robert Jelic bb1b1beb79 Basalt 1.7 Update
- New Objects (Flexbox, Graph, Treeview)
- Pluginsystem to add/remove functionality
- Reworked the entire Object system, instead of one big Object Class we have multiple classes: Object, VisualObject, ChangeableObject
- Instead of one big Frame Class we have multiple Frame Classes: BaseFrame, Frame, MovableFrame, ScrollableFrame, MonitorFrame, Flexbox
- Removed the Animation Object, and added a animation plugin instead
- Removed the Graphic Object and merged it's functionality with the image object
- Updated currently existing objects
2023-04-30 17:05:34 +02:00

1.5 KiB

Graph is a versatile object for visualizing data in various formats such as scatter, line, or bar graphs. It inherits from the ChangeableObject, VisualObject, and Object classes, which provide it with additional properties and methods. The Graph object allows you to customize its appearance, manage data points, and define the display range.

In addition to the methods inherited from the Object, VisualObject, and ChangeableObject classes, Graph objects have the following methods:

setGraphColor Sets the color of the graph
setGraphSymbol Sets the symbol used to represent data points in the graph
getGraphSymbol Returns the symbol used to represent data points in the graph
addDataPoint Adds a data point to the graph
setMaxValue Sets the maximum value displayed on the graph
getMaxValue Returns the maximum value displayed on the graph
setMinValue Sets the minimum value displayed on the graph
getMinValue Returns the minimum value displayed on the graph
setGraphType Sets the type of the graph (scatter, line, or bar)
setMaxEntries Sets the maximum number of data points displayed on the graph
getMaxEntries Returns the maximum number of data points displayed on the graph