# DSL Overview Examples

## Example 1

```json
{
  "context": {
    "foo": 2,
    "bar": 3
  },
  "options": {
    "foo": 1,
    "color": "> foo",
    "value": "> bar"
  },
  "dataSources": {}
}
```

## Example 2

```json
{
  "context": {
    "trendColorThresholds": [
      {
        "from": 1321,
        "value": "#00FFFF"
      },
      {
        "to": 1321,
        "value": "#FF00FF"
      }
    ]
  },
  "options": {
    "sparklineValues": "> primary | seriesByIndex(0)",
    "trendValue": "> sparklineValues | delta(-2)",
    "trendColor": "> trendValue | rangeValue(trendColorThresholds)"
  },
  "dataSources": {}
}
```
