> For the complete documentation index, see [llms.txt](https://docs.siminsights.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.siminsights.com/hyperskill-studio-authoring/virtual-entities/special-virtual-objects/graph.md).

# Graph

A special VO that displays a graph

"Graph" is a Special Virtual Object that displays a scatter plot. Add the customizable attributes below to the Graph VO to define the data and axes.

## Customizable attributes

| Attribute     | Type    | Description                                                       |
| ------------- | ------- | ----------------------------------------------------------------- |
| data          | String  | Points to draw, in the format `(x1, y1); (x2, y2); (x3, y3); ...` |
| xMin          | Float   | Minimum range of the x-axis                                       |
| xMax          | Float   | Maximum range of the x-axis                                       |
| yMin          | Float   | Minimum range of the y-axis                                       |
| yMax          | Float   | Maximum range of the y-axis                                       |
| xTick         | Float   | Number of units between each tick on the x-axis                   |
| yTick         | Float   | Number of units between each tick on the y-axis                   |
| AnimationTime | Float   | Total time of the graph animation showing dots left to right      |
| color         | Integer | Text and dot color (see color codes below)                        |
| style         | String  | "line", "dot" (default dots, if empty)                            |
| title         | String  | graph title                                                       |
| xLabel        | String  | x-axis label                                                      |
| yLabel        | String  | y-axis label                                                      |

### Color codes

* 0: white
* 1: black
* 2: red
* 3: green
* 4: blue
* 5: yellow
* 6: cyan
* 7: magenta
* default: orange
