# me.jgs.pix.graph

> A pixel graph definition. The record key is the graph ID.

- Kind: record
- Record key: tid
- Authority: pix.jgs.me
- Lexicon: 1
- Published by [jgs.me](https://lexicon.garden/identity/did:plc:v6nn36co2lrr6b3pyuniy2jh), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:v6nn36co2lrr6b3pyuniy2jh/me.jgs.pix.graph)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:v6nn36co2lrr6b3pyuniy2jh/me.jgs.pix.graph/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:v6nn36co2lrr6b3pyuniy2jh/me.jgs.pix.graph/analytics)

## Record (`me.jgs.pix.graph`)

Type: record · key tid

### Properties

- `color` (string)
  - Constraints: maxLength: 32, default: "blue", knownValues: blue | green | red | yellow | purple | gray
- `createdAt` (string · datetime, required)
- `hidden` (boolean): Hidden graphs are not served by the AppView.
  - Constraints: default: false
- `name` (string, required)
  - Constraints: maxLength: 640, maxGraphemes: 64
- `timezone` (string): IANA time zone name. Defaults to UTC.
  - Constraints: maxLength: 64
- `unit` (string, required)
  - Constraints: maxLength: 320, maxGraphemes: 32
- `valueType` (string, required)
  - Constraints: maxLength: 32, knownValues: int | float

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A pixel graph definition. The record key is the graph ID.",
      "key": "tid",
      "record": {
        "properties": {
          "color": {
            "default": "blue",
            "knownValues": [
              "blue",
              "green",
              "red",
              "yellow",
              "purple",
              "gray"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "hidden": {
            "default": false,
            "description": "Hidden graphs are not served by the AppView.",
            "type": "boolean"
          },
          "name": {
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "timezone": {
            "description": "IANA time zone name. Defaults to UTC.",
            "maxLength": 64,
            "type": "string"
          },
          "unit": {
            "maxGraphemes": 32,
            "maxLength": 320,
            "type": "string"
          },
          "valueType": {
            "knownValues": [
              "int",
              "float"
            ],
            "maxLength": 32,
            "type": "string"
          }
        },
        "required": [
          "name",
          "unit",
          "valueType",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "me.jgs.pix.graph",
  "lexicon": 1
}
```
