Chart

Chart creates different types of charts it takes in an array of data and in the att you need to set chartStyle which can be:

  • bar
  • fit
  • line
  • pie
  • points
  • radar
  • spline

Bar

```graph
bounds: [-10, 10, 10, -10]
elements: [
	{type: chart, def: [1,2,3,4], att: {chartStyle: bar}}
]
```

chartBar

Fit

```graph
bounds: [-10,  10,  10,  -10]
elements: [
	{type: chart, def: [1,2,3,4], att: {chartStyle: fit}}
]
```

chartFit

Line

```graph
bounds: [-10, 10, 10, -10]
elements: [
	{type: chart, def: [1,2,3,4], att: {chartStyle: line}}
]
```

chartLine

Pie

```graph
bounds: [-10,10,10,-10]
elements: [
	{type: chart, def: [1,2,3,4], att: {chartStyle: pie}}
]
```

chartPie

Radar

Radar needs a paramArray.

```graph
bounds: [-10, 10, 10, -10]
elements: [
	{type: chart, def: [[1,2,3], [4,3,2], [-5,-6,0], [-1,5,1]], att: {chartStyle: radar, paramArray: [x, y, z]}}
]
```

chartRadar

Spline

Takes an array of x coordinates and an array of y coordinates

```graph
bounds: [-10, 10, 10, -10]
elements: [
	{type: chart, def: [[1,2,3], [4,3,2]], att: {chartStyle: spline}}
]
```

chartSpline